in reply to Re: code ref
in thread code ref

no clean methodology to data inheritance.

There is Tie::SecureHash for this purpose. But it is essentially a workaround for the issue you mention.

--- demerphq
my friends call me, usually because I'm late....

Replies are listed 'Best First'.
Re^3: code ref
by Aristotle (Chancellor) on Nov 11, 2002 at 15:14 UTC
    Unfortunately, that solution suffers from the same fundamental problem: a derived class still has to know that $self is a hashref (in this case a blessed one, but that doesn't matter for our purposes). Without using Abigail's inside out objects trick, you cannot implement a subclass in Perl without knowing at least this one detail about the implementation of the superclass - what kind of thing $self is and how to store instance data in it.

    Makeshifts last the longest.