use List::Util qw/reduce/; my $sum = reduce { $a + $b } 1..10;
In reply to Re: Answer: How can I add all the numbers in an array with out doing a foreach loop?
by borisz
in thread How can I add all the numbers in an array with out doing a foreach loop?
by draco_iii
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |