No need to even write a separate function... just open-code it as needed.use List::Util qw(sum); # found in the CPAN my $total = sum @hash{qw(foo bar baz)};
-- Randal L. Schwartz, Perl hacker
In reply to Re: sum function
by merlyn
in thread sum function
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |