P is for Practical | |
PerlMonks |
Re: Directory creation failingby BazB (Priest) |
on Feb 27, 2004 at 10:12 UTC ( [id://332221]=note: print w/replies, xml ) | Need Help?? |
Try mkdir($dir) or die "Unable to create directory $dir: $!"; (obviously assigning $dir first).
If you're trying to create a hierarchy/tree of directories, you should look at File::Path's mkpath call. 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.
In Section
Seekers of Perl Wisdom
|
|