use List::Util qw/sum/; my $total = sum( @array );
Sorry, but that's the closest you'll get.
Cheers,
Ovid
Vote for paco!
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid) Re: addup function?
by Ovid
in thread addup function?
by tomazos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |