Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: hash undef?

by Anonymous Monk
on Nov 15, 2007 at 15:11 UTC ( #650986=note: print w/replies, xml ) Need Help??


in reply to Re: hash undef?
in thread hash undef?

defined returns a boolean false (an empty string), not undef, if the value it is testing is not defined:

perl -wMstrict -e "print 'defined returns defined' if defined defined undef" defined returns defined

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2022-11-28 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?