in reply to Re: Counting files in directory.
in thread Counting files in directory.

my @files = <$dir/*>; my $count = @files;