Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Summing Variables in foreach loop

by ikegami (Pope)
on Jan 31, 2014 at 17:29 UTC ( #1072883=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Summing Variables in foreach loop
in thread Summing Variables in foreach loop

A even more normal way would be avoid reduce entirely :)

say sum 0, map count_zeros($cgs,$_), <DATA>;


Comment on Re^3: Summing Variables in foreach loop
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2014-08-29 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (277 votes), past polls