Chas. Owens wrote:
On Sat, Jun 20, 2009 at 00:58, Aruna Goke<mykl...@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

http://perlcabal.org/syn/S09.html#Negative_and_differential_subscripts

Thanks Chas,

however, i have been trying to run the example of Mixing subscripts under S09.

can you give me an example of using the Mixing subscripts?

goksie

Reply via email to