On 12/30/20 5:39 PM, ToddAndMargo via perl6-users wrote:
Hi All,In the following for loop: for ^$nCount -> $i { What is the ^ doing? Confused again, -T
Used in context, the ^ makes the integer $nCount look
like an array of 0 to ($nCount - 1). Am I missing
something?
my $x=4;
for ^$x -> $i { print "i = $i\n"; }
i = 0
i = 1
i = 2
i = 3
