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.

Replies are listed 'Best First'.
Re^4: map {} list or do {} for list?
by choroba (Cardinal) on Apr 11, 2014 at 15:17 UTC
    maybe I should switch spending time from PM to blogs.perl.org
    I do both. I switched from sleeping.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      not all of us have a hate relation with their family ;-b

      Cheers Rolf

      ( addicted to the Perl Programming Language)

      PS: hope to see you soon again, mate! :)