in reply to Quickest, most efficient way to get number of files in dir?

opendir D, "somedir" or die; my $count = () = readdir D; $count -= 2; # :-) closedir D;
Although you might benchmark that against this for both small and huge directories:
opendir D, "somedir" or die; my $count = -2; $count++ while readdir D; closedir D;

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.