If you need to work with all the files condider sorting the file list by inodes. You'll use disk readahead instead of cache and disk seeks are minimized.sub read_dir_list{ opendir(DIR, '.'); my @all_files = readdir DIR; closedir DIR; my @files = grep /^ABC.*/ @all_files; return @files; }
In reply to Re: glob() far slower than `dir`
by NiJo
in thread glob() far slower than `dir`
by halley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |