Syntactic Confectionery Delight | |
PerlMonks |
Re: Undefined undef oddnessby PrakashK (Pilgrim) |
on Jul 24, 2001 at 00:59 UTC ( [id://99168]=note: print w/replies, xml ) | Need Help?? |
According to, "perldoc -f ref",
ref returns a true value if EXPR is a reference, false
otherwise. It does not say undef is returned.
A defined test on a "false" value returns true, since even a "false" value is defined. The following snippet: prints 'Y'.
In Section
Seekers of Perl Wisdom
|
|