Hi,
Luke Palmer wrote:
> On 8/4/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote:
>> my $pair = (a => 1);
>> say $pair[0]; # a?
>> say $pair[1]; # 1?
>>
>> I've found this in the Pugs testsuite -- is it legal?
>
> Nope. That's:
>
> say $pair.key;
> say $pair.value;
>
> Also:
>
> say $pair<a>; # 1
> say $pair{anything else}; # undef
>
> But we don't implicitly cast references like that.
thanks for clarification, that's what I've thought, too :)
--Ingo
--
Linux, the choice of a GNU | The next statement is not true.
generation on a dual AMD | The previous statement is true.
Athlon! |