Have you looked at File::Glob? It allows you to select files based on shell wildcards. I think it would be your simplest solution.
non-Perl: Andy Ford
In reply to Re: using finddepth with part of directory name
by andyford
in thread using finddepth with part of directory name
by jsons
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |