Unlike in Perl 5, the list repetition operator evaluates the left argument thunk each time, so
my @a = Foo.new xx $n;
produces $n distinct objects.
$n
Last updated 2 years ago