Skip to main content
You can add the numbers in the array [6,7,29] using a loop.
test text
Alternately using the List::Util module:
use List::Util qw(sum); my @a = (6,7,29); print sum(0, @a);