The resulting code is:
if($folder_path =~ s/^\Q$sourcedir/Eitv9/) { print "\n$folder_path/$file";}
Oh and if the path comes from the user using STDIN, don't forget to chomp it first.
In reply to Re: shrinking the path
by bart
in thread shrinking the path
by prad_intel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |