Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Summing Variables in foreach loop

by ikegami (Patriarch)
on Jan 31, 2014 at 17:29 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1072883]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-25 08:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found