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, ...
In reply to Re: exists() for a hash child-key creates the parent key? Bug?
by Anonymous Monk
in thread exists() for a hash child-key creates the parent key? Bug?
by AnonymousPerl1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |