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 reply to Re: Consolidate info in a while() loop
by CountZero
in thread Consolidate info in a while() loop
by peppiv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |