http://qs321.pair.com?node_id=606887


in reply to quickest way to find number of files in a directory?

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.