in reply to Re: Given a tie object, get a tied hash (or scalar, or whatever)
in thread Given a tie object, get a tied hash (or scalar, or whatever)

> The basic problem that I see is that $obj doesn't know anything about the class %hash was tied to

No? What would ref($obj) return? Remember that $obj comes from

my $obj = tied(%hash);

And the very def'n of tied is that it returns the underlying object that implements the tied thingy.

Cheers,
Richard

  • Comment on Re: Re: Given a tie object, get a tied hash (or scalar, or whatever)
  • Download Code