in reply to Help needed with Perl script designed to find files by extension and count the number of chars
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help needed with Perl script designed to find files by extension and count the number of chars
by Athanasius (Archbishop) on Apr 30, 2015 at 14:55 UTC |