Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Wrong Results in checking if hash value is defined or not

by sundialsvc4 (Abbot)
on Jun 30, 2017 at 14:54 UTC ( [id://1193939]=note: print w/replies, xml ) Need Help??


in reply to Wrong Results in checking if hash value is defined or not

From perldoc perlfunc, on the entry for “defined()”:

When used on a hash element, it tells you whether the value is defined, not whether the key exists in the hash.   Use "exists" for the latter purpose.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-03-19 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found