On Sat, Jun 20, 2009 at 02:49, Aruna Goke<mykl...@gmail.com> wrote:
> 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
>

Hmm, I can't get [user-defined array indexes][1] working, and those
are a prerequisite for mixing subscripts (you can't mix normal and
user-defined indexes if you can't create user-defined indexes).  I
took a quick look at the tests and couldn't even find a test for
user-defined array indexes.

[1] : http://perlcabal.org/syn/S09.html#User-defined_array_indexing

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

Reply via email to