http://qs321.pair.com?node_id=1081988


in reply to Re^2: map {} list or do {} for list?
in thread map {} list or do {} for list?

No I didn't¹ ..

But problem ...

a) seems to be introduced by the new randomization, so it's a bug

and

b) is not new, you can't nest each %hash cause it has global side-effects². In my case it's only local to the loop.

But yeah, I would love to have something like hashgrep and hashmap in core ...

Cheers Rolf

( addicted to the Perl Programming Language)

¹) maybe I should switch spending time from PM to blogs.perl.org to follow Reini, Aristoteles and Damian...

²) maybe better phrased as "bound to the the hash ref". I can imagine situations where passing around the hashref and iterating over it in different places is useful.