in reply to Tieing anonymous hashes
('a' => 1) is a list, not a hash. %{{'a' => 1}} is an anonymous hash.
tie(%{{'a' => 1}}, 'class'); seems to work, but it was a simple test.