in reply to recursive mkdir
use File::Path qw( mkpath ); mkpath( $path, 0, 0777 );
And, no, I can't see this as a good case for using recursion. Sure, you could code it recursively, but the value of recursion is when it makes coding it easier. I think it would almost be a stretch to do this one recursively so you'd just be working hard to make your code slower. (:
FYI, see (tye)Re: Recursion for my thoughts on recursion.
This node has been updated.
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: recursive mkdir
by zzspectrez (Hermit) on Jan 08, 2001 at 10:56 UTC | |
by tye (Sage) on Jan 08, 2001 at 11:12 UTC |