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
In reply to Re^3: param = 0, not NULL
by davorg
in thread param = 0, not NULL
by Spenser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |