Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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>;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1072883]
help
Chatterbox?
[LanX]: headshot ?
LanX s English not humorous enough
[choroba]: yes, headshot, in a game
[choroba]: the context is probably also important. They are students of a tech university

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2017-10-18 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (245 votes). Check out past polls.

    Notices?