in reply to Summing column values

OK - here is how you might want to proceed:

A code-fragment (following your start) could look like

my $key = $columns[0].", ".$columns[1]; # supposed columns[1] has a +lready been reduced to its first 3 letters $myHash { $key } += $columns[2];

HTH, Rata