in reply to Multiple Inheritance - Howto marry tie::refhash::nestable with class::singleton

This doesn't work, since $self = Tie::RefHash::Nestable->TIEHASH($self, $class); returns a Tie::RefHash::Nestable-object - but what I want to get back is a GlobalHash object ...

By reblessing the $self object into the GlobalHash class you would be able to return its object as shown below, wouldn't you?

bless $self, 'GlobalHash';
return $self;
  • Comment on Re: Multiple Inheritance - Howto marry tie::refhash::nestable with class::singleton