After this statement defined %h returns false. Whereas%h = ();
is assigning a single key to the hash (whose value happens to be undef, and thus coerced into the empty string '') with no corresponding value, hence the warning. But after this assignment the hash is no longer empty, so defined %h returns true.%h = undef;
In reply to Re: hash assignment wierdness
by Errto
in thread hash assignment wierdness
by Bro. Doug
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |