in reply to Re: count files in a directoryin thread count files in a directory
chdir $dir or die "Cannot chdir to '$dir': $!"; my @files = glob '*'; [download]