Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: undef as a key in a hash.

by Eimi Metamorphoumai (Deacon)
on Sep 25, 2007 at 18:40 UTC ( #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
Node Status?
node history
Node Type: note [id://641016]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2020-10-31 04:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (286 votes). Check out past polls.

    Notices?