http://qs321.pair.com?node_id=567413


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

List::Util provides a sum() function:
use List::Util qw(sum); $sum = sum(1..10);