in reply to Re: How to test for empty hash?
in thread How to test for empty hash?

> This works for me:

And it's well documented defined in perldata (tho hard to find)

The exact value is only version dependent if the hash is not empty, but still guaranteed to be true (unless tied to magic behaviour)

Maybe not relevant for the OP but IMHO still of interest to people used to the old behaviour.

> So maybe your hash isn't actually empty?

Or tied?

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery