Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: adding items, but with interim results

by jms53 (Monk)
on Mar 30, 2013 at 15:12 UTC ( #1026283=note: print w/ replies, xml ) Need Help??


in reply to adding items, but with interim results

use strict; use warnings; my @array = qw ( 0 1 3 2 ); my @newarray; for (@array) { push @newarray, $newaaray[-1]+$_; #will probably bug for $array[0] }
J -


Comment on Re: adding items, but with interim results
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-07-03 03:17 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 (47 votes), past polls