Greetings,
I am having some conceptual problems doing what I think is a fairly
simple
perl task. It is probably that my mind is just blank on this. Could
someone
please recommend a strategy for this.
I have a hash of data:
%highest_level = ( 2001-10-14 = 152, 2002-01-15 = 163, 2003-03-13 =
Joseph Alotta wrote:
I have a hash of data:
%highest_level = ( 2001-10-14 = 152, 2002-01-15 = 163, 2003-03-13 =
210, 2004-08-07 = 307 );
I think you mean:
%highest_level = (
'2001-10-14' = 152,
'2002-01-15' = 163,
'2003-03-13' = 210,
'2004-08-07' = 307
);
because otherwise the
[Abba:~/oldperlcode] josephal% perl /tmp/test
2002-01-15: 163
[Abba:~/oldperlcode] josephal%
John,
Thank you for looking at this. I will play around with
this some more. I don't understand why you use the
array index [0] and [1] in this code. But anyway, it
doesn't work:
[Abba:~/oldperlcode]
At 2:01 pm -0600 16/2/04, Joseph Alotta wrote:
Am I missing something or is this harder than it first appears?
I think you need either to quote the date string as below or use a
number for the date, such as 20011014. If you use a number then
you'll need to repalce ge, le with =, =
Joseph Alotta wrote:
Greetings,
I am having some conceptual problems doing what I think is a fairly
simple perl task. It is probably that my mind is just blank on
this. Could someone please recommend a strategy for this.
I have a hash of data:
%highest_level = ( 2001-10-14 = 152,