Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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'.

Comment on Re: Undefined undef oddness
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://99168]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2015-11-28 06:56 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (739 votes), past polls