in reply to Re^4: how to set a value for a hash reference
in thread how to set a value for a hash reference

Then you do need the initialization. You could write something along the lines of

for my $a (@members) { for my $b (@memebers) { $overlap->{$a}{$b} = 0; } }

before the other loop.