Perl Monk, Perl Meditation | |
PerlMonks |
Re: Extracting file name from pathby ZZamboni (Curate) |
on Jun 14, 2001 at 08:26 UTC ( [id://88293]=note: print w/replies, xml ) | Need Help?? |
As bikeNomad said, you are missing a backslash before the
w for matching the extension. The following should work:
Also take a look at File::Basename and File::Spec, which have different methods for splitting and massaging paths and filenames. --ZZamboni
In Section
Seekers of Perl Wisdom
|
|