in reply to rearrange data to min, avg, max

Due to my inability to wrap my head around arrays of hashes, I had ended up doing it like this:
$data_min{"$timestamp"} = $seconds if (!$data_min{"$timestamp" +}); $data_min{"$timestamp"} = $seconds if ($seconds<$data_min{"$ti +mestamp"}); $data_max{"$timestamp"} = $seconds if ($seconds>$data_max{"$ti +mestamp"}); $data_avg{"$timestamp"}+= $seconds; $data_counter{"$timestamp"} ++;
Then I simply looped through the keys of $data_counter and computed averages by dividing $data_avg/$data_counter I'll definetly look at all the suggestions and make use of them. Thanks much.