Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: File::Spec splitdir

by mr_ron (Chaplain)
on Oct 26, 2015 at 17:19 UTC ( [id://1146006]=note: print w/replies, xml ) Need Help??


in reply to File::Spec splitdir

You seem to be new to PerlMonks, in which case welcome. The directory in your data has leading and trailing slashes which seem to add extra empty directories at the beginning and end from splitpath. I tested under windows BTW. Anyway something like the line below should move you along in the direction you are trying to go.

print join('|', @dirs), $Name, "\n";
Ron

Replies are listed 'Best First'.
Re^2: File::Spec splitdir
by davidinottawa (Initiate) on Oct 26, 2015 at 17:51 UTC
    Perfect, thanks! Appreciated!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-26 02:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found