Do you know where your variables are? | |
PerlMonks |
Re^2: variable set to 0 ? 0 : 1 (return by itself returns undef in scalar context)by Flexx (Pilgrim) |
on Sep 06, 2002 at 12:51 UTC ( [id://195628]=note: print w/replies, xml ) | Need Help?? |
It's true that return by itself returns an empty list in list context. But it returns undef in scalar context -- not scalar( () )! ;) Updated: Simply added a quote of what I was refering to, since the thread grew quite long. Improved punctuation to boost readability. Removed unneccesary extra link to return.
In Section
Seekers of Perl Wisdom
|
|