In the very same thread that Roger referred you to their is a nifty little subroutine ( Re: Autovivification with hash of hashes ) that you can use to test for existence without autovivifying the shallower levels of the hash. You will also find here a discussion of the subject and some more code that is related to the problem.
The subject is covered in detail in Programming Perl 3rd edition on page 254.
In reply to Re: deleting a hash key can create one?
by jdtoronto
in thread deleting a hash key can create one?
by zentara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |