I'm not entirely clear what you mean, but does something like thid do the trick?
--my $file_path = 'home/sites/site18/users/rjoseph/web/images/image1.jpg'; my $path = '/home/sites/site18/users/rjoseph/'; $file_path =~ s/^$path//;
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Stripping parts of paths from directory names
by davorg
in thread Stripping parts of paths from directory names
by r.joseph
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |