in reply to sum function
sub _sum { my $hash = shift; my $total = 0; $total += $_ for @$hash{ @_ }; return $total; } [download]