On Thu, Aug 14, 2008 at 02:32:29AM -0500, Patrick R. Michaud wrote: : AFAICT, according to the grammar it's valid standard Perl 6 syntax.
At least in pugs, 42[0] is legal, and produces the value 42, on the theory that anything can be considered a list of 1 item, and if you use something as a list, it is one. And it's a useful idiom when you're not sure whether you are getting a list or not, but you just want the first value in any case. Larry