If you do not assign to a newly autovivified variable it will default to the undefined value (undef).
use strict and use warnings help.
The difference between (a) a hash key that exists and is defined, (b) a hash key that exists and is not defined, and (c) a hash key that does not exist - is a common point of confusion.
-Andrew.
In reply to Autovivify definition
by tomazos
in thread Should calling 'exists' create a hash key?
by mje
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |