http://www.perlmonks.org?node_id=1020370


in reply to Re^13: Is there any difference between prototype % and @ ?
in thread Is there any difference between prototype % and @ ?

> And so far; neither you nor I have come up with a use case.

trivial example

%salary=( boss => 1_000, secretary => 300, admin => 600, janitor => 150, ); print map {"$_ earns $salary{$_} \n" } sort { $salary{$a} <=> $salary{$b} } grep { $salary{$_} > 500 } keys %salary;

translating it to hmap, hsort and hgrep is left as an excercise.

Cheers Rolf