in reply to look through directory for tar files only
Take a look at using File::Find or File::Find::Rule.