my @files = glob($path.'/*.zip');
1 2 3
use File::Find; my @files; find(sub { push @files, $File::Find::name if $File::Find::name =~ /\.zip$/ }, $path);
1 2 3
use File::Find::Rule; my @dirs = ( '.' ); my @files = File::Find::Rule->file()->name('*.zip')->in(@dirs);