Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 rifling through the Monastery: (10)
As of 2014-10-23 21:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (129 votes), past polls