in reply to sum function
use List::Util qw(sum); # found in the CPAN my $total = sum @hash{qw(foo bar baz)}; [download]
-- Randal L. Schwartz, Perl hacker