in reply to Re: have to Extract substring after '/' character
in thread have to Extract substring after '/' character
The tricks in this particular case are escaping the slash with a backslash (\/), ...
Even better, choose a different delimiter. Instead of
if ( $path =~ /\/path\/to\/file/ ) ...
use
if ( $path =~ m{/path/to/file} ) ...
I hope this is of interest.
Cheers,
JohnGG
|
|---|