in reply to return a hash or undef
If the function return undef, I've got the warning "Odd number of elements in hash assignment".Yeah, that is kind of irritating isn't it? Probably there is a good reason.
the condition, of course, will be untrue, unless there really is a key called "non-existant key" and it is defined.if (defined($hash{non-existant key})) ...
|
|---|