in reply to Re: Dumb recursive mkdir question...
in thread Dumb recursive mkdir question...

I'm almost with gamache on this one, if it's not something you need to do often in the program, or if you don't have the access/ability to install the File:Path module, then doing 'mkdir -p' in a "perlish" way might be even easier (considering you're in a Unix environment):
$path = "/path/to/real/deep/folder"; $out = `mkdir -p $path 2>&1`; die "Can't make path: $out\n" if ($? > 0);

Replies are listed 'Best First'.
Re^3: Dumb recursive mkdir question...
by ikegami (Patriarch) on Oct 23, 2007 at 03:01 UTC