in reply to
Re: undef as a key in a hash.
in thread
undef as a key in a hash.
Nope.
''
won't reach there.
''
is defined. He'd have to use
length
instead of
defined
to check for
''
.
Comment on
Re^2: undef as a key in a hash.
Select
or
Download
Code
Replies are listed 'Best First'.
Re^3: undef as a key in a hash.
by
ursus
(Acolyte)
on Jan 03, 2008 at 19:59 UTC
Or use it as a boolean. :-)
[reply]
In Section
Seekers of Perl Wisdom