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


in reply to map-like hash iterator

Or maybe even
sub hashit (&\%) { my ($c, $h) = @_; local ($a, $b); map { ($a, $b) = each %$h; $c->() } (undef) x keys %$h; }

Makeshifts last the longest.