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

Re: How do I extract a file name from a path string

by knight (Friar)
on Oct 04, 2000 at 22:31 UTC ( [id://35306]=note: print w/replies, xml ) Need Help??


in reply to How do I extract a file name from a path string

The File::Spec module will let you separate the volume, without having to worry about the suffix:
use File::Spec; ( $volume, $directories, $file ) = File::Spec->splitpath( $path );

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-24 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found