in reply to Iterate trough a series of folders
or even bettermy @dirs = grep {-d "$dir/$_"} readdir($gdh);
andmy @dirs = grep {/[^.]/ and -d "$dir/$_"} readdir($gdh);
or alternately change your working directory with chdir. You might also simplify your life by using File::Find.opendir (my $tdh, "$dir/$tumordirs") or die "Unable to open subdir";
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Iterate trough a series of folders
by BlueStarry (Novice) on Apr 04, 2016 at 18:32 UTC | |
by kennethk (Abbot) on Apr 04, 2016 at 18:52 UTC |