Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Extracting file name from path

by ZZamboni (Curate)
on Jun 14, 2001 at 08:26 UTC ( #88293=note: print w/ replies, xml ) Need Help??

in reply to Extracting file name from path

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.


Comment on Re: Extracting file name from path
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2015-11-28 08:21 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (739 votes), past polls