You already have some code to scan through your directory and decide whether or not you want a file, so all you have to do is push the file into the array at the end of a similar loop. Something like the following:
while (my $file = readdir(DIR)) { #decide whether or not this is a file the user wants ... push @files, $file; }
Then you can use stiller's loop to iterate through that list, opening each file for processing.
In reply to Re^3: Range File Open
by amarquis
in thread Range File Open
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |