find(\&wanted, $dir); my @file_list; sub wanted{ next if (-l && !-e ); push (@file_list, $File::Find::name) if ((($_ =~ m/.txt$/gi) && ($ +_ !~ m/category.txt$/gi)) || ($_ =~ m/.jpg$/gi) || ($_=~ m/.tif$/gi)); }
In reply to Push, Matching, and File::Find by JKasting
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |