Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How to seperate directory and file

by kcott (Abbot)
on Sep 14, 2012 at 07:41 UTC ( #993666=note: print w/ replies, xml ) Need Help??


in reply to How to seperate directory and file

G'day Divakar,

The built-in module File::Spec has a number of functions for manipulating pathnames: splitpath() would be the one to use here.

-- Ken


Comment on Re: How to seperate directory and file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2015-07-03 08:59 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 (50 votes), past polls