Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Directory creation failing

by BazB (Priest)
on Feb 27, 2004 at 10:12 UTC ( #332221=note: print w/ replies, xml ) Need Help??


in reply to Directory creation failing

Try mkdir($dir) or die "Unable to create directory $dir: $!"; (obviously assigning $dir first).
$! should give you a clue.

If you're trying to create a hierarchy/tree of directories, you should look at File::Path's mkpath call.
File::Path is a standard module.

If you're not doing so already, Use strict warnings and diagnostics or die.


If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.


Comment on Re: Directory creation failing
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2015-07-06 06:38 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 (70 votes), past polls