in reply to Re: Re: Re: 3D array of hashes
in thread 3D array of hashes
Hmm, I'm realizing that I'm not being entirely clear.
Say you don't have data for *every* (or every month, year, etc), so you only want those days/months/years in %weather_archive for which you have data.
So, I'm assuming you'll want to iterate through the original array of hashes, pulling out unique values for days/months/years.
To simplify this, let's say I've munged the data a bit, and now my hashes looks like this:
%weather_day = ( Year => "2003", Month => "April", Day => "15", High => "73f", Low => "49f" ); push (@weather_days, %weather_day);
How can I extract the unique year/month/day values, and then programmatically build up the %weather_archive hash?
Once I have %weather_archive, how can I print it so that it looks something like this?
2003 April 15 High: 73f Low: 49f
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: 3D array of hashes
by Rhys (Pilgrim) on Oct 08, 2003 at 22:12 UTC | |
by ManyCrows (Novice) on Oct 08, 2003 at 22:36 UTC | |
by davido (Cardinal) on Oct 09, 2003 at 03:49 UTC | |
|
Re: Re: Re: Re: Re: 3D array of hashes
by davido (Cardinal) on Oct 08, 2003 at 22:05 UTC |