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


in reply to Size of an Hash reference

use strict; use warnings; use Data::Dumper; my $hr = {}; print Dumper($hr);

gives

$VAR1 = {};

So your hash ref above is not really empty whereas mine here is.