On Tue, 22 Nov 2005 14:34:12 -0800, Larry Wall wrote: > What tipped me over the edge, however, is that I want ^$x back for a unary > operator that is short for 0..^$x, that is, the range from 0 to $x - 1. I > kept wanting such an operator in revising S09. It also makes it easy to > write > > for ^5 { say } # 0, 1, 2, 3, 4
It seems strange to have a shortcut for 0..$n-1 but no shortcut for 0..$n. I'm also puzzled that you feel the need to write 0..$n-1 so often; there are so many alternatives to fenceposting in P5 that I almost never write an expression like that, so why is it cropping up that much in P6? -- Peter Scott