http://www.perlmonks.org?node_id=943197


in reply to push in for loop

You could try the repetition operator, eg:

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