in reply to Object and tied hash all at once?
tie my %$hash, Class::Whatever; # access the object as hash $hash->{foo} = "bar"; # access the tied object directly tied($hash)->SomeMethod(); [download]