in reply to Re: Replace $a with $b if $a ne $b
in thread Replace $a with $b if $a ne $b

You shouldn't use a regex to split the filename from the path. Better take File::Basename for that.
use File::Basename; my ($name,$path) = fileparse($fullname);


holli, /regexed monk/