Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by Tux (Monsignor)
on Jul 12, 2013 at 08:40 UTC ( #1043909=note: print w/ replies, xml ) Need Help??


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

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1043909]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2015-08-31 16:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (358 votes), past polls