no autovivification does pretty much what you (seem to) want, observation and reading is safe, but setting vivifies.
Choroba already pointed you to autovivification
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
In reply to Re^3: Defined test creates non-empty hash value
by LanX
in thread Defined test creates non-empty hash value
by glendeni
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |