Thanks for the replies.
In this particular case, I define "best" as "quickest lookup" as there are only 48 values per day (I am processing each data separately) and I will be doing the lookup approx. 8000 times per day.
I'd like to do the lookup something like this: my $pressure = get_pressure("2003-10-12 16:09:06"); Where $pressure is set to the most recent pressure value prior to "2003-10-12 16:09:06"
I am prefectly capable of writing a function that searches through a list of values to return the required value. I was hoping that there would be a nice perl trick to save me the bother!!!
R.
--
Robin Bowes | http://robinbowes.com
In reply to Re: Re: Data structure advice
by robinbowes
in thread Data structure advice
by robinbowes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |