in reply to processing a lot of files

In addition to the suggestions made by others, keep in mind that readdir will also return sub-directory names, as well as file names. You may need to filter out directories using -X:
while(my $f = readdir($dh)){ next if -d "$dir/$f";

Replies are listed 'Best First'.
Re^2: processing a lot of files
by lomSpace (Scribe) on Jul 28, 2009 at 21:26 UTC
    That is a good look Toolic!
    Thanks!
    LomSpace