rrwo has asked for the wisdom of the Perl Monks concerning the following question:

Here's a stumper: is it possible for a variable to be an object and a tied hash (or even array etc.) all at once? For example...

tie my %$hash, Class::Whatever; $hash->{foo} = "bar"; $hash->SomeMethod();

or maybe

my $obj = new Class::Whatever; $obj->{foo} = "bar"; $obj->SomeMethod();

Has this been done before? Could it be done (perhaps twiddling with attributes to say that the object is tied)?