good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: Why are "a ||= b" and "a = a || b" different?by saintmike (Vicar) |
on Mar 04, 2007 at 21:27 UTC ( [id://603134]=note: print w/replies, xml ) | Need Help?? |
Thanks, diotalevi, your explanation of the side effects makes perfect sense.
Do you have any thoughts about why refreshes $ret2 and not $ret1 with the result of the evaluation of foo() in scalar context as mentioned by varian ? Update: typo fixed, thx diotalevi.
In Section
Seekers of Perl Wisdom
|
|