in reply to Re: How to get list of methods inside object
in thread How to get list of methods inside object

caveats: That will list all functions in the package, not just methods, but Perl can't tell the difference. Also, it won't list inherited methods unless the package overrides them.
  • Comment on Re^2: How to get list of methods inside object

Replies are listed 'Best First'.
Re^3: How to get list of methods inside object
by dragonchild (Archbishop) on Oct 11, 2005 at 14:44 UTC
    Two more things:
    • Package-table checks have no chance with AUTOLOAD
    • Walking the @ISA tree is tenuous at best, due to putting subrefs into @ISA.

    Update: Oops! I wasn't supposed to tell you - that was your Christmas gift. :-(


    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
      Walking the @ISA tree is tenuous at best, due to putting subrefs into @ISA.
      Huh? New feature sneak by me? When was it added? Or are you misremembering coderefs in @INC (for cool require/use interceptions)?

      -- Randal L. Schwartz, Perl hacker
      Be sure to read my standard disclaimer if this is a reply.