in reply to Re: Symbol table globbing from object refs
in thread Symbol table globbing from object refs

But @ISA is usually lexical, which means i have to peek into it somehow. Ugly.
@ISA is also very flexible - code refs and such. I'm not sure I want to implement something that's already been done - emulation is never 100%

Morever, I can't guarantee this has a module, i'm expecting weird objects (classless ones, and so forth), so Module::Info doesn't work. At least not unless I use it on an opened scalar ref, containing B::Deparse's output. Very ugly.

Last but not least, this is too resource intensive for such a simple job, IMHO.



-nuffin
zz zZ Z Z #!perl
  • Comment on Re: Re: Symbol table globbing from object refs

Replies are listed 'Best First'.
Re: Re: Re: Symbol table globbing from object refs
by bart (Canon) on Nov 29, 2003 at 12:18 UTC
    But @ISA is usually lexical, which means i have to peek into it somehow.
    Say what?!? If @ISA isn't a global/package variable, inheritance won't work. So it's never a lexical.
Re: Re: Re: Symbol table globbing from object refs
by Anonymous Monk on Nov 29, 2003 at 11:24 UTC
    So what? You requirements/expectations are completely unrealistic.
      I think they are pretty reasonable...

      PodMaster was absolutely right about Devel::Symdump, and I was totally wrong about walking @ISA. For some reason I thought it was lexical by default.

      I managed to find a solution that doesn't parse it's own code, and works under 20 lines of code, so i think it's realistic... =)

      Update: well... no classless objects, but...



      -nuffin
      zz zZ Z Z #!perl