in reply to Faster searching
Have you tried File::Find?
See the doc for how to search using more complex criteriaour @filelist = (); our $fdir = "/usr/blah" find(\&wanted, $fdir); die " cannot get file list: $!" unless(@filelist>0); #assuming the directory exists, @filelist now has all files in blah in +cluding subdirs. sub wanted { my $thisfile = $File::Find::name; push(@filelist, $thisfile) }
|
|---|