The feature where
exists $hash{a}{b}{c}
... will cause $hash{a}{b} to spring into existence is called "autovivification" and is a built-in Perl feature; it's often useful, but not always. (And it's a really annoying word to type!) There's a module on CPAN called autovivification that gives you finer control over autovivification.
In reply to Re: Checking if hash value exists without implicitly defining it
by tobyink
in thread Checking if hash value exists without implicitly defining it
by Doctrin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |