Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Answer: How do I split a string containing path+filename

( #80210=categorized answer: print w/ replies, xml ) Need Help??

Q&A > strings > How do I split a string containing path+filename contributed by arturo

For maximum portability, use File::Basename, a standard CPAN module:

use File::Basename; use strict; # get full path in $path my $filename = basename($path);

Comment on Answer: How do I split a string containing path+filename
Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2015-07-07 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls