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