foreach(@log) { /(some regex with captures here)/; push @{$hourly_site_log_sum{$1}{$2}},$3; }