# New Ticket Created by Larry Wall # Please include the string: [perl #126060] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=126060 >
perl6-m -e 'for $[1,2,3] { .say }; .say for $[1,2,3];' [1 2 3] 1 2 3 This showed up in the following rosettacode entry: .say for identity-matrix(5); sub identity-matrix($n) { [1, |(0 xx $n-1)].item, *.rotate(-1).item ... *[*-1] == 1 } which produces [1 0 0 0 0] [0 1 0 0 0] [0 0 1 0 0] [0 0 0 1 0] 0 0 0 0 1