my $dir = '/some/path'; my @files = File::Find::Rule->file() ->name( '*.tar' ) ->in( $dir );