good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: ${^POSTMATCH} problemby ikegami (Patriarch) |
on Jun 14, 2020 at 15:34 UTC ( [id://11118056]=note: print w/replies, xml ) | Need Help?? |
Yeah, The behaviour of ($foo = 1) . ($foo = 2) . ($foo = 3) used to be roughly equivalent to
But now, it's roughly equivalent to
In both cases, $foo itself is being put on the stack. The difference is when it's used (before it has a chance to be changed by later assignments, or after).
In Section
Seekers of Perl Wisdom
|
|