Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://943197]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2017-11-24 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (354 votes). Check out past polls.

    Notices?