$/ = 'abc';
my $test = "test/\n";
$test =~ s|/\z||;
print $test;
