in reply to undef as a key in a hash.
I had to try this myself, because I couldn't believe it:
$a{undef} = 1; print defined for keys %a; # Output 1 # This doesn't work either: %a = (undef, 1);
I wonder what he was thinking...
Ted Young
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: undef as a key in a hash.
by Joost (Canon) on Sep 25, 2007 at 18:45 UTC | |
|
Re^2: undef as a key in a hash. (constant.pm "bug")
by lodin (Hermit) on Sep 26, 2007 at 12:05 UTC |