Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: push in for loop

by kejohm (Hermit)
on Dec 12, 2011 at 22:28 UTC ( #943197=note: print w/ replies, xml ) Need Help??


in reply to push in for loop

You could try the repetition operator, eg:

my @problems = (1 .. 3); @problems = (@problems) x 2; say "@problems";


Comment on Re: push in for loop
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (13)
As of 2015-02-27 16:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    On my keyboard, Caps lock is:








    Results (448 votes), past polls