It's not clear what you mean by "and then returns them in a list as a path to another directory." if you need to copy or move the files, please post a follow-up question. Here's a suggestion for finding the files:
See File::Find::Rule
Edit: simplified examplemy $dir = '/some/path'; my @files = File::Find::Rule->file() ->name( '*.tar' ) ->in( $dir );
In reply to Re: look through directory for tar files only
by 1nickt
in thread look through directory for tar files only
by yunglean808
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |