in reply to Re: Gather file count in directory
in thread Gather file count in directory

If you're willing to slurp in the entire filelist, you can also do
my $num_of_files = scalar @{[<*>]};

mr.nick ...