Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: adding items, but with interim results

by AnomalousMonk (Abbot)
on Mar 30, 2013 at 23:36 UTC ( #1026309=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @y = map { state $z = 0; $z += $_ } @x;
    
  2. or download this
    >perl -wMstrict -MData::Dump -lE
    "sub summer { return map { state $z = 0;  $z += $_; } @_; }
    ...
    
    ----------
    [0, 1, 3, 2]
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2014-11-21 03:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (104 votes), past polls