in reply to Re: initializing a hash leaves garbage
in thread initializing a hash leaves garbage

But it's totally unnecessary. my %hash;, which you need to do anyway, creates and empty hash.