Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Parse out the extension of a filename - return base of filename.

by freonpsandoz (Beadle)
on Sep 20, 2016 at 22:26 UTC ( #1172253=note: print w/replies, xml ) Need Help??


in reply to Re: Parse out the extension of a filename - return base of filename.
in thread Parse out the extension of a filename - return base of filename.

The key to this working is the regular expression passed to the fileparse method

Too bad File::Basename doesn't set a reasonable default for the fileparse() RE based on the OS like it does for the path separator. If you understand REs well enough to supply a correct one to fileparse(), you most certainly don't need File::Basename to get the file extension!

  • Comment on Re^2: Parse out the extension of a filename - return base of filename.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1172253]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2022-08-10 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?