Kiran Kumar writes: > Hi , > Is this behaviour correct when i print $_ ? .. > > > #!/usr/bin/pugs > use v6; > > for (0 .. 8) -> $tmp > { > say " tmp is $tmp Spcl is $_ \n"; > } > > tmp is 0 Spcl is 1 > > tmp is 2 Spcl is 3 > > tmp is 4 Spcl is 5 > > tmp is 6 Spcl is 7 > > tmp is 8 Spcl is
Nope. It seems that pugs is considering $tmp and the implicit usage of $_ to specify two different parameters to the block. In fact, there's only one: $tmp, and it is aliased to $_. Luke