Andrew Shitov wrote:
>>     say $pair[0];  # a?
> It looks like $pair is an arrayref while 'say ref $pair' tells 'Pair'.

right, this is why I asked, IMHO it's bogus.

> And may I ask a relating question:
> my $pair = ('name' => 'age');
> say $pair{'name'}; # prints 'age'
> say $pair['name']; # why prints 'name'? <== question
> say $pair['age']; # prints 'name'

That's probably because both "name" and "age" get numified to 0 which in
turn means (in current Pugs) .key.


Linux, the choice of a GNU | There are no answers, only
generation on a dual AMD   | cross-references.  
Athlon!                    | 

Reply via email to