Just another Perl shrine | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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. In reply to Re^3: map {} list or do {} for list?
by LanX
|
|