# tie the new hash with the initialised hashes above tie %hash, 'Tie::Hash::Layered', (\%test1, \%test2); #### tie %hash, 'Tie::Hash::Layered', \( %test1, %test2 );