|Pathologically Eclectic Rubbish Lister|
Searching in an array of arraysby perl_seeker (Scribe)
|on Nov 03, 2004 at 11:57 UTC||Need Help??|
perl_seeker has asked for the wisdom of the Perl Monks concerning the following question:
I have an array of arrays built by parsing data from an XML file, which looks like this.
Each row contains a date and a temperature value. I need to search the temperature values in this array of arrays.
For each consecutive 5 (for the time being, better to make this a variable)rows (days) where the temperature values
fall in the same range, I need to store in another array of arrays the start date, end date and a string describing the temperature range.
For example the array of arrays could look like:
The temperature ranges I need to use are:
Any help with coding this ?Any code or help would be appreciated.