http://www.perlmonks.org?node_id=1063525


in reply to Re^2: autovivication and referencing
in thread autovivication and referencing

No, just say key2 => { ... }, ie use braces instead of parentheses.

perldsc is your friend, look at HASHES OF HASHES.