in reply to Size of an Hash reference
use strict; use warnings; use Data::Dumper; my $hr = {}; print Dumper($hr); [download]
gives
So your hash ref above is not really empty whereas mine here is.