Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 cooling their heels in the Monastery: (10)
As of 2015-07-06 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (85 votes), past polls