|Do you know where your variables are?|
Consolidate info in a while() loopby peppiv (Curate)
|on Jan 21, 2003 at 19:25 UTC||Need Help??|
peppiv has asked for the
wisdom of the Perl Monks concerning the following question:
SWM - non-smoker, desperately seeks...........Oops! wrong text.
I've got a problem consolidating information that is picked up from a while loop. Let's take a look........
This produces results that look like this:
Wed 1/01 1,342
Thu 1/02 1,876
Fri 1/03 2,467
Sat 1/04 1,567
Sun 1/05 3,899
Mon 1/06 2,544
Tue 1/07 1,235
Wed 1/08 2,099
What I need to do is format it like this:
Where I only list the day of the week once, but the numbers for this day is totaled. I'm trying to put this into a DB and it'd be a lot easier to put it in by day of month as opposed to by the day and have to create all these extra rows.
Too burnt to figure this out and need help! Anyone have any ideas?