in reply to exists() for a hash child-key creates the parent key? Bug?
Documented in exists (excerpt):
if (exists $ref->{A}->{B}->{$key}) { } if (exists $hash{A}{B}{$key}) { } ...Although the most deeply nested array or hash element will not spring into existence just because its existence was tested, any intervening ones will. Thus $ref->{"A"} and $ref->{"A"}->{"B"} will spring into existence due to the existence test for the $key element above. This happens anywhere the arrow operator is used, ...
|
|---|