laziness, impatience, and hubris | |
PerlMonks |
Re: Ternary Quizical behaviour? (updated)by LanX (Saint) |
on Jul 10, 2020 at 12:22 UTC ( [id://11119135]=note: print w/replies, xml ) | Need Help?? |
TL;dr but that's really what you want or just a C&P disaster? ;)
updateOK now I looked closer, I think you get bitten by passing the same lvalue $m twice in the same statement.
updateyep, seems I'm right, if you force Perl to pass an immutable copy instead of the var it works like expected
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|