GaijinPunch has asked for the wisdom of the Perl Monks concerning the following question:
I need to make that directory tree on another machine. I've played around with all kinds of stuff, and I can easily pop off the file name. But I'm getting stuck b/c you can't just say...my $directory = "/home/user/files/personal/addresses";
...and expect it to make it unless the previous directory is there. Not w/ unix anyway. If I knew the subdirectories would only go 3-4 layers deep, it wouldn't be a problem, but they could go on forever, so I need a more dynamic solution than what I've come up with. So, I'm hoping there's a module, or just something I'm missing that could help out. I found Find::File which made my life easier in gathering that info. Now I'm looking for a simpler way out of writing the directories.mkdir /home/user/file/personal
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Help making a directory tree
by merlyn (Sage) on Aug 26, 2003 at 07:50 UTC | |
by GaijinPunch (Pilgrim) on Aug 26, 2003 at 07:55 UTC | |
|
Re: Help making a directory tree
by wirrwarr (Monk) on Aug 26, 2003 at 08:09 UTC | |
by GaijinPunch (Pilgrim) on Aug 26, 2003 at 08:12 UTC | |
by wirrwarr (Monk) on Aug 26, 2003 at 09:46 UTC | |
|
Re: Help making a directory tree
by sgifford (Prior) on Aug 26, 2003 at 07:30 UTC | |
by GaijinPunch (Pilgrim) on Aug 26, 2003 at 07:52 UTC | |
by sgifford (Prior) on Aug 26, 2003 at 18:02 UTC |