p4raw-id: //depot/perl@20283
print STDERR " prefixify $var => $path\n" if $Verbose >= 2;
print STDERR " from $sprefix to $rprefix\n" if $Verbose >= 2;
- $rprefix .= '/' if $sprefix eq '/'; # Compensate for the slash.
+ $rprefix .= '/' if $sprefix =~ m|/$|; # Compensate for the slash
if( $path !~ s{^\Q$sprefix\E\b}{$rprefix}s && $self->{ARGS}{PREFIX} ) {
print STDERR " cannot prefix, using default.\n" if $Verbose >= 2;