in reply to Re^2: param = 0, not NULL
in thread param = 0, not NULL
There is no such thing as an "empty hash reference". Or, if there is then the only possible meaning that it could have would be an undefined scalar.
I think you mean "a reference to an empty hash is TRUE". And that's because Perl has already allocated storage for the hash and given you a reference to it. And a reference is always true.
See the Copyright notice on my home node.
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg
|
|---|