The OP tries to avoid counting the "." and ".." directories. Slip a "return if /^\.\.?\z/" in at the top of that anonymous sub, and I think that's it.
In reply to Re^2: Count folder/files in directory
by kyle
in thread Count folder/files in directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |