You don't want to just look at $Values{$class}, since you need to destroy inherited attributes too.

Isn't that going to be done by that class's DESTROY method? That is, the "next" call will do it.

So the DESTROY method deletes all instances of a particular object in all classes.

I see, that won't wipe out everything, just all the attributes of that object since instance keys are unique.


In reply to Re: Re: Re: Class::InsideOut - yet another riff on inside out objects. by John M. Dlugosz
in thread Class::InsideOut - yet another riff on inside out objects. by adrianh

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":