in reply to Limiting file:find depth question
Add:
$File::Find::prune = @{$dirs{$_}} > 1;
to the end of the version of dir_names I gave in my answer to your previous question:
sub dir_names { return if ! -d || ! /[IPD]\d{8}$/; push @{$dirs{$_}}, $File::Find::name; $File::Find::prune = @{$dirs{$_}} > 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Limiting file:find depth question
by RockE (Novice) on Nov 14, 2013 at 05:46 UTC | |
|
Re^2: Limiting file:find depth question
by RockE (Novice) on Nov 14, 2013 at 06:08 UTC |