in reply to make_path for creating directory tree
I would make all the base directories, push the dir name to an array, then foreach "cwd/$dir" make the sub directories how you see fit. Seems pretty much straight forward. Good Luck!
EDIT: Maybe this will give you an idea. ;)use strict; use warnings; use File::Path qw(make_path); make_path("one/two/three", "four/five/six" , {verbose => 1});
OUTPUT: C:\Perlmonks>make_paths.pl mkdir one mkdir one/two mkdir one/two/three mkdir four mkdir four/five mkdir four/five/six
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: make_path for creating directory tree
by fasoli (Beadle) on Dec 23, 2015 at 15:28 UTC | |
by james28909 (Deacon) on Dec 23, 2015 at 15:37 UTC | |
by fasoli (Beadle) on Dec 23, 2015 at 16:04 UTC | |
by james28909 (Deacon) on Dec 23, 2015 at 16:16 UTC | |
by fasoli (Beadle) on Dec 23, 2015 at 16:20 UTC | |
|