--- Stevan Little <[EMAIL PROTECTED]> wrote:
> Autrijus asked me to look into the correct behavior for $pair.kv
> One tests shows $pair.kv returning an array with two elements (the
> key
> and value of the pair). (This is also how Pugs currently implements
> this.)
>
> Another test shows $pair.kv returning an array with one element which
>
> is an array-ref/list which itself has 2 elements (the key and value)
> in it.
Page 52 of the 2nd Edition Perl6 and Parrot has this:
for %ages.kv -> $name, $age {
print "$name is now $age";
}
That tends to suggest the former interpretation is correct.
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/