in reply to Size of an Hash reference
Show your code. The hash is not, in fact, empty ... it contains a tag consisting of an empty-string pointing to a value that is undef. How it got to be that way is the root bug in your program. The only way that this could have happened is if your code did it, and you didn't know it.