foreac (@{$param{'-exclude'}}) { $has_to_be_excluded{ $_ }++; } find( sub {push @files, $File::Find::name}, $param{'-directory'} ); @files = grep { !$has_to_be_excluded{ $_ }; /\.html$/; } @files;
In reply to Re: filtering file names to be added to an array...maybe.
by larsen
in thread filtering file names to be added to an array...maybe.
by udigthis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |