Keep It Simple, Stupid | |
PerlMonks |
Re^4: file name parsing to get the original file nameby MarkM (Curate) |
on Dec 13, 2012 at 23:55 UTC ( [id://1008748]=note: print w/replies, xml ) | Need Help?? |
The check:
$path=~/.*\/(.*)$/;$name=$1;Doesn't take into account that the path might *not* have a directory component...
In Section
Seekers of Perl Wisdom
|
|