On Tue, Jan 02, 2001 at 03:21:15PM -0000, Jonathan Peterson wrote:
>> my @sort=sort keys %{ +{ map { $_ => undef } @list } };
> ^^
> What does +{} do???
"{ ... }" turns the list within into an anonymous hash reference. The "+" is
to disambiguate it from a BLOCK. The "%{ ... }" dereferences this anonymous
hash so that you may do a keys() on it.
- RE: Getting keys of mapped hash? Jonathan Peterson
- Re: Getting keys of mapped hash? Richard Clamp
- RE: Getting keys of mapped hash? Peter Corlett
- RE: Getting keys of mapped hash? Jonathan Peterson
- Re: Getting keys of mapped hash? Peter Corlett
