You should take a look at File::Spec. What you show con be done with File::Spec->splitpath and File::Spec->splitdir. That approach will make your code more portable, and the parsing more accurate.
After Compline,
Zaxo
In reply to Re: filtering folder path using regex.
by Zaxo
in thread filtering folder path using regex.
by blackadder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |