Construct an anonymous array with copies of @list as its content; and then replicate the reference to it $nelts times.
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;
In reply to Re: Surprised by repetition (x) operator applied to a list
by BrowserUk
in thread Surprised by repetition (x) operator applied to a list
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |