in reply to Re: Can a Perl module "inspect" itself and provide details about methods and parameters?
in thread Can a Perl module "inspect" itself and provide details about methods and parameters?

Fun. Play stub–

use 5.10.0; package DoReMe { use Moo; use namespace::autoclean; # Redacts introspection output significa +ntly! has "solfege" => is => "lazy"; } use Class::Inspector; my $methods = Class::Inspector->methods("DoReMe"); say join $/, @{$methods}; say "--"; use Devel::Symdump; my $obj = Devel::Symdump->rnew("DoReMe"); say join $/, $obj->functions;
BUILDALL BUILDARGS DEMOLISHALL does meta new solfege -- DoReMe::new DoReMe::solfege
  • Comment on Re^2: Can a Perl module "inspect" itself and provide details about methods and parameters?
  • Select or Download Code