$ perl -le ' opendir D, q{dirname} or die $!; print scalar grep { ! m{^\.\.?$} } readdir D;' 123 $
Cheers,
JohnGG
In reply to Re: quickest way to find number of files in a directory?
by johngg
in thread quickest way to find number of files in a directory?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |