http://www.perlmonks.org?node_id=606766


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

Probably something along these lines:

my $dir = 'directory name goes here'; my @files = <$dir/*>; my $count = @files;
--

See the Copyright notice on my home node.

"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg