perlquestion
rrwo
<p>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...</p>
<code>
tie my %$hash, Class::Whatever;
$hash->{foo} = "bar";
$hash->SomeMethod();
</code>
<p>or maybe</p>
<code>
my $obj = new Class::Whatever;
$obj->{foo} = "bar";
$obj->SomeMethod();
</code>
<p>Has this been done before? Could it be done (perhaps twiddling with
attributes to say that the object is tied)?</p>