negative index in perl6 array

2009-06-19 Thread Aruna Goke
is negative index not allowed in perl6? i tried my @test = (1 .. 20); @test[-1].say; OUTPUT Use of uninitialized value

Re: negative index in perl6 array

2009-06-19 Thread Chas. Owens
On Sat, Jun 20, 2009 at 00:58, Aruna Gokemykl...@gmail.com wrote: is negative index not allowed in perl6? i tried my @test = (1 .. 20); @test[-1].say; OUTPUT Use of uninitialized value You have to say @test[*-1].say; now