Re: Fwd: aggregating time steps

2007-08-23 Thread Gunnar Hjalmarsson
Kirk Wythers wrote: I don't see how $totals{$year}{$month}{count} ++; is holding the count. Read about the auto-increment operator in "perldoc perlop". -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Fwd: aggregating time steps

2007-08-23 Thread Kirk Wythers
Begin forwarded message: On Aug 23, 2007, at 4:25 PM, Mr. Shawn H. Corey wrote: # How about? my ( $year, $month, $doy, $tmax, $tmin, $par, $precip, $NH4, $NO3, $O3, $CO2, $V1, $V2, $V3, $V4 ) = split; # You can now store your totals by month as: $totals{$year}{$month}{tmax} += $tmax; .