Darn. I hoped there was something obvious I was missing :-)

While scanning all coderefs & symbol table entries might work for a lot of cases, I don't think it is completely general. For example, consider:

{ package Foo; use base qw(Class::InsideOut); sub new { return bless [], shift }; { my %foo : Field }; };

There are no subroutines that have %foo in their scope so, without generating code with a source filter, I can see no way of getting access to the pad with "%foo" in it.


In reply to Re^6: Class::InsideOut - yet another riff on inside out objects. by adrianh
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":