Perl: the Markov chain saw | |
PerlMonks |
Re^2: unexpected modify hash in a distance with grep { $_ }by LanX (Saint) |
on Dec 20, 2019 at 18:19 UTC ( [id://11110442]=note: print w/replies, xml ) | Need Help?? |
> Not a problem with grep. $$h{x} is autovivified before grep happens. Nope, it happens because of the aliasing of the hash value inside grep, but I'm not sure how.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|