in reply to Data structure advice

When coming up with a data structure, ask yourself what you'll be needing to search by. That peice of data will be the first level of either a hash or array. If you can easily get your data into something reasonable for an array index, then use an array. Otherwise, use a hash.

In your case, I'd guess you'd want something like this:

$struct {$date} {$time};

Where $date is the date you're looking for, and $time is the time, and the data held at $struct{$date}{$time} is the barometric pressure value.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

: () { :|:& };:

Note: All code is untested, unless otherwise stated