in reply to Re^2: File::Find::prune problems
in thread File::Find::prune problems
This is a really important point - prune on $File::Find::name match works best. e.g.
my $crnt_file = $File::Find::name; my $root = $::root_dir; if (scalar grep($crnt_file =~ m/^$root$_/, @::prune) != 0) { print Dumper($crnt_file); $File::Find::prune = 1; return; }
This tip helped heaps. Thanks.
|
|---|