Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://88293]
[shmem]: moment... lemme see...
[shmem]: Python 2.7.9
[shmem]: but! perl4 doesn't suck.
[LanX]: better try 3
[shmem]: that python stuff is none of my business.
[shmem]: but sometimes I have to debug things implemeted by "the other team" and stick their nose into their dirt.
[shmem]: because it affects "my team"

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2018-03-20 18:33 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (257 votes). Check out past polls.