"Adam D. Lopresto" <[EMAIL PROTECTED]> writes:
>> I don't see why I'd want to do it with arrays, but...
>>
>> %a_students = %grades{grep /^a/i, keys %grades};
>
> Looks like that's just the same as
>
> %a_students = grep {.key ~~ :i/^a/}, %grades.kv;
I think you could probably get away without the .kv there since, in a
list context you're going to get a list of pairs anyway.
--
Piers
"It is a truth universally acknowledged that a language in
possession of a rich syntax must be in need of a rewrite."
-- Jane Austen?