Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Listing the functions of a package / methods of an object

by moritz (Cardinal)
on Jul 15, 2008 at 14:52 UTC ( [id://697737]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Listing the functions of a package / methods of an object
in thread Listing the functions of a package / methods of an object

Hmm ... but nothing for the old-fashioned plain blessed packages?..

I think you can do better (for example recurse into the classes @ISA, and filter out methods beginning with an underscore (which are private by convention), DESTROY etc.), but there are conceptual limits.

Perl doesn't have different declarations for subs and methods, so it's impossible to distinguish these two automatically.

Maybe there are better solutions to your problem. For example the thread Runtime introspection: What good is it? discusses (among a variety of other things) possible alternatives to to introspection.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://697737]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (1)
As of 2024-04-25 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found