Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 - Answer 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);

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 chilling in the Monastery: (7)
As of 2016-08-29 00:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (397 votes). Check out past polls.