grep would also do.my %exts; @exts{@exts} = (); sub wanted { if (/\.(\w+)/) { print "$File::Find::dir/$hold\n" if exists $exts{lc($1)}; } }
This is untested, but the implementation can't be too far different.
In reply to Re: Better way to search?
by chromatic
in thread Better way to search?
by r.joseph
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |