in reply to Determining what methods are available to a class

Another way is to look into the package symbol table. For example:
use strict; use warnings; use Devel::Symdump; use CGI; # for our example we will look into the CGI package my $obj = Devel::Symdump->rnew( 'CGI' ); my @f = $obj->functions; print join "\n", @f;
And here part of the output:
CGI::Util::rearrange
CGI::Util::make_attributes
CGI::Util::utf8_chr
CGI::Util::simple_escape
CGI::Util::unescape
...
CGI::croak
CGI::import
CGI::binmode
CGI::self_or_CGI
CGI::expires

Replies are listed 'Best First'.
Re: Re: Determining what methods are available to a class
by chromatic (Archbishop) on Aug 09, 2003 at 17:43 UTC

    Unfortunately, that doesn't account for inherited methods or AUTOLOADed methods. (Remember to write your own can() when you AUTOLOAD() accessors and such.)