good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Parse out the extension of a filename - return base of filename.by ariels (Curate) |
on Apr 17, 2002 at 14:54 UTC ( [id://159835]=note: print w/replies, xml ) | Need Help?? |
Why not regexp it?
(That said, you probably should use File::Basename: it's more likely to DTRT on platforms with different conventions for extensions...).
In Section
Cool Uses for Perl
|
|