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
In reply to Re: undef as a key in a hash.
by TedYoung
in thread undef as a key in a hash.
by fenLisesi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |