in reply to Are "$hash{$_} ||= 1 + keys %hash" and variants well defined or not?

The simplest expression of this form is probably

$hash{foo} ||= exists $hash{foo};

versus

$hash{foo} = $hash{foo} || exists $hash{foo};