Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 -

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 perusing the Monastery: (14)
As of 2016-06-29 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (384 votes). Check out past polls.