in reply to exists() for a hash child-key creates the parent key? Bug?

exists works safely only for the last step. See autovivification if you don't want to type
if ( exists $hash{keyA} and exists $hash{keyA}{keyB} and exists $hash{keyA}{keyB}{keyE} and exists $hash{keyA}{keyB}{keyE}{keyF} ) {
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: exists() for a hash child-key creates the parent key? Bug?
by AnonymousPerl1 (Initiate) on Dec 17, 2014 at 12:47 UTC
    Thank you. Looks like I'll just have to trim my code a bit to be more careful about this, since I can't include any packages that aren't distributed with Perl by default (script is deployed to multiple machines that other users manage).