$hash{'foo'} = 0 unless exists $hash{'foo'}; # Not the same as: $hash{'foo'} = 0 unless defined $hash{'foo'};