Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Gather file count in directory

by mr.nick (Chaplain)
on Jan 05, 2012 at 18:14 UTC ( [id://946445] : note . print w/replies, xml ) Need Help??


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 ...