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


in reply to Surprised by repetition (x) operator applied to a list

  1. This: ( [@list] ) x $nelts; says:

    Construct an anonymous array with copies of @list as its content; and then replicate the reference to it $nelts times.

  2. This: map { [@list] } 1 .. $nelts; says:

    Construct $nelts (different) anonymous arrays, that each contain copies of @list.

How would you do it?

I generally omit the block for that type of expression:

my @arr = map[ @list ], 1 .. $nelts;

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.