Depending on the amount of the files you're talking about, maybe File::Find::Rule fit your needs:
use strict; use warnings; use File::Find::Rule; my @files = File::Find::Rule->file()->in('/my/path'); print scalar @files, $/;
Igor 'izut' Sutton
your code, your rules.
In reply to Re: quickest way to find number of files in a directory?
by izut
in thread quickest way to find number of files in a directory?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |