⭐ 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);
In Section
Seekers of Perl Wisdom