JKasting has asked for the wisdom of the Perl Monks concerning the following question:
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)); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Push, Matching, and File::Find
by ikegami (Patriarch) on Feb 17, 2010 at 19:22 UTC | |
by Marshall (Canon) on Feb 17, 2010 at 20:10 UTC | |
by ikegami (Patriarch) on Feb 17, 2010 at 22:51 UTC |