http://www.perlmonks.org?node_id=741702


in reply to COMPARING MEMORY ISSUES

One is empty.
The other is undefined.
undef $hashRef should do the trick, I'd think.