Matt Sergeant wrote:
> > I really wanted to have DispatchStat be On, Off, or ISA, where ISA reloaded
> > the asked for module and all it's parents  - since given Class->method(),
> > method() might not actually be in Class.  Basically, I wasn't able to find a
> > way to get to @Class::ISA where Class is unknown until run-time (that is,
> > it's held in $class).  I figured I should be able to use some symbolic
> > referencing or something, but I couldn't get it to work.
>
> @{"${class}::ISA"}

Yep, that's one weird bit of syntax.  I just needed this recently to
write a test.pl, and it took quite a bit of testing to get it working. :)

Incidentally, does anyone know of a way to do this that works under
strict?  The above requires a "no strict 'refs'" to work.

-- 
Roger Espel Llima, [EMAIL PROTECTED]
http://www.iagora.com/~espel/index.html

Reply via email to