go ahead... be a heretic | |
PerlMonks |
Re: Return value in ternaryby ramlight (Friar) |
on Mar 29, 2010 at 16:13 UTC ( [id://831653]=note: print w/replies, xml ) | Need Help?? |
Yes, you can return undef as well as a value. You would need to do a defined test in order to differentiate between undef and false.
In Section
Seekers of Perl Wisdom
|
|