in reply to Directories without recursion and exceptions
use File::Find::Rule; my @search = qw( /usr/local/ ); my @abs_dirs = qw ( /usr/local/share/locale ); my %abs_dirs; @abs_dirs{@abs_dirs} = (); my @dirs = grep { ! exists $abs_dirs{$_} } File::Find::Rule->directory +()->in( @search );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Directories without recursion and exceptions
by merlyn (Sage) on Feb 21, 2006 at 14:43 UTC | |
by davidrw (Prior) on Feb 21, 2006 at 15:08 UTC | |
|
Re^2: Directories without recursion and exceptions
by uksza (Canon) on Feb 21, 2006 at 14:58 UTC |