Take a look at using File::Find or File::Find::Rule.
In reply to Re: look through directory for tar files only by fishmonger in thread look through directory for tar files only by yunglean808