Tip #2 from the Basic debugging checklist: print. The reason you get no output is that $tmpfilecount is 0. $tmpfilecount is 0 because you set it to 0 in your foreach loop, then you never change its value. The only thing you do with the variable is pass it as an input to your countThem sub.
In reply to Re: Help needed with Perl script designed to find files by extension and count the number of chars
by toolic
in thread Help needed with Perl script designed to find files by extension and count the number of chars
by Griegomas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |