|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: perl onliner on multiple filesby igelkott (Curate) |
| on Feb 08, 2013 at 21:30 UTC ( #1017891=note: print w/ replies, xml ) | Need Help?? |
|
Seems to work fine (on a reasonable number of files) if you want the total sum. If you want the sum per file, a minimal change would be to print and reset $c after each file ends. For example:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||