http://www.perlmonks.org?node_id=1043909


in reply to Re: How can I add all the numbers in an array with out doing a foreach loop?
in thread How can I add all the numbers in an array with out doing a foreach loop?

List::Util is CORE:

use List::Util qw( sum ); my $sum = sum @arrayToSum;

Enjoy, Have FUN! H.Merijn
  • Comment on Re: Answer: How can I add all the numbers in an array with out doing a foreach loop?
  • Download Code