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


in reply to Re: Re: The Cost of Nested Referencing
in thread The Cost of Nested Referencing

They're both far too verbose.
for my $subhash (@hash{@keyset1}) { print $subhash->{$_} for @keyset2; }
or if you really only have a single statement in there, even print @{$_}{@keyset2} for @hash{@keyset1}; You can be efficient and readable all at the same time.

Makeshifts last the longest.