Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Undefined undef oddness

by PrakashK (Pilgrim)
on Jul 24, 2001 at 00:59 UTC ( #99168=note: print w/replies, xml ) Need Help??


in reply to Undefined undef oddness

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:

print defined 0 ? 'Y' : 'N';
prints 'Y'.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://99168]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2017-11-24 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (351 votes). Check out past polls.

    Notices?