Help for this page
opendir (D,".")|| die "nope sorry"; for (readdir(D)){ ++$count if -f; } print $count;