Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Mkdir failing

by bart (Canon)
on Dec 02, 2011 at 11:58 UTC ( #941303=note: print w/replies, xml ) Need Help??


in reply to Mkdir failing

You can't use mkdir to create deeply nested directories in one go. But you can use make_path (or mkpath) from the (standard) module File::Path to do it for you.

oh, and you have to remove the newline from the end of each filename. A simple way to do that is using chomp.

Replies are listed 'Best First'.
Re^2: Mkdir failing
by MVRS (Acolyte) on Dec 03, 2011 at 04:07 UTC
    thankyou bart, it worked for me with mkpath

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://941303]
help
Chatterbox?
Corion is not sure if this is serious
[LanX]: I've already outlined. you might want to add a link
[LanX]: oopp ssorry ...
[LanX]: ... thought it's a root post

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2017-01-17 18:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (158 votes). Check out past polls.