Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: undef as a key in a hash.

by Eimi Metamorphoumai (Deacon)
on Sep 25, 2007 at 18:40 UTC ( [id://641016]=note: print w/replies, xml ) Need Help??


in reply to undef as a key in a hash.

Hash keys are always strings, so if you try to use undef it will be coerced to the empty string, with a warning ("Use of uninitialized value in hash element") if warnings are enabled. So it shouldn't actually be possible for that code to be called.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-19 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found