Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: query for methods?

by ph0enix (Friar)
on Jul 03, 2002 at 09:53 UTC ( [id://179109]=note: print w/replies, xml ) Need Help??


in reply to Re: query for methods?
in thread query for methods?

This way can be used when I have some idea about function name:) I want to obtain list of all functions - don't know function names...

Replies are listed 'Best First'.
Re: Re: Re: query for methods?
by broquaint (Abbot) on Jul 03, 2002 at 10:00 UTC
    Then just dump the symbol table of your given package either by hand or using Juerd's Devel::GetSymbols. If you want to roll you own something like this ought do the trick
    package Foo; our $VERSION = 0.1; sub new { bless {}, shift } sub foo { print "i'm a method of Foo\n" } package main; for my $sym (keys %Foo::) { print "method - $sym\n" if *{"Foo::$sym"}{CODE}; } __output__ method - foo method - new

    HTH

    _________
    broquaint

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found