Damian Conway wrote:
>    > > When a pair reference is assigned (in)to an array, it remains a
>    > > single scalar (referential) value. So:
>    > >
>    > >         @array = ( a=>1, b=>2, 'c', 3 );
>    > >
>    > > assigns four elements (not six) to @array.

> The proposed C<key> and C<value> built-ins (or the extended C<keys> and
> C<values>) would be used on a pair reference:
> 
> print key $array[0];            # or perhaps: print keys $array[0];
        ^^^ Makes sense                         Mismatch ^ ^ 
> print value $array[0];          # or perhaps: print value $array[0];
                                                           ^ 's'

But what does C<key $array[2]> do?  Or C<keys @array>?

Jon
-- 
Knowledge is that which remains when what is
learned is forgotten. - Mr. King

Reply via email to