Syntactic Confectionery Delight | |
PerlMonks |
Re^4: Why are "a ||= b" and "a = a || b" different?by saintmike (Vicar) |
on Mar 03, 2007 at 06:18 UTC ( [id://603036]=note: print w/replies, xml ) | Need Help?? |
Sorry, liverpole, looks like I totally sent you down the wrong alley.
It's not about undefined values or using strict. If you leave out the my in my post, it makes better sense. What I wanted to say is that is different than regarding context. Regardless if $ret is defined or not, foo() is in scalar context in the first statement and in list context in the second. I've removed the my from the original post to make the intention clearer.
In Section
Seekers of Perl Wisdom
|
|