$hash1{ $affix } = &share( {} ); ## Add an empty shared hash ## THEN you can do $hash1{ $affix }{ $postfix } = ....