in reply to Searching all directories except one
Update: Fixed code.my $base_dir = '/directory/subdirectory/webstuff'; my %exclude = map { $_ => undef } qw(. .. zz); opendir my($dh), $base_dir; my @dir = grep { not exists $exclude{$_} and -d "$base_dir/$_" } readd +ir $dh; closedir $dh; find( \&findstuff, map "$base_dir/$_", @dir);
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Searching all directories except one
by UnderMine (Friar) on Nov 18, 2002 at 14:30 UTC | |
by Aristotle (Chancellor) on Nov 18, 2002 at 14:33 UTC | |
|
Re: Re: Searching all directories except one
by Anonymous Monk on Nov 18, 2002 at 15:25 UTC | |
by Aristotle (Chancellor) on Nov 18, 2002 at 16:16 UTC |