No such thing as a small change | |
PerlMonks |
Re: Consolidate info in a while() loopby CountZero (Bishop) |
on Jan 21, 2003 at 19:38 UTC ( [id://228805]=note: print w/replies, xml ) | Need Help?? |
Make a hash where the names of the weekdays are the keys and the numbers are the values. Then do something like $total{$weekday} += $number; Do this at the spot where you previously printed the numbers and print after the while-loop has run its course. CountZero "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In Section
Seekers of Perl Wisdom
|
|