Perl Monk, Perl Meditation | |
PerlMonks |
Re: Mkdir failingby bart (Canon) |
on Dec 02, 2011 at 11:58 UTC ( [id://941303]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|