in reply to Re: Re: Consolidate info in a while() loop
in thread Consolidate info in a while() loop

In your while-loop, obtain both the day of the week without the date (to be put into a variable $weekday) and the number (put this into $number).

Once you have these data, then $total{$weekday} += $number; will add $number to the value of the hash %total keyed by $weekday.

That's all there is to it.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law