No, just say key2 => { ... }, ie use braces instead of parentheses.
perldsc is your friend, look at HASHES OF HASHES.
In reply to Re^3: autovivication and referencing
by hdb
in thread autovivication and referencing
by Amblikai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |