tie my %$hash, Class::Whatever; # access the object as hash $hash->{foo} = "bar"; # access the tied object directly tied($hash)->SomeMethod();