in reply to extracting subroutine names (together with their packages) via PPI

The anonymous monk below is right:

use Module::Info; my $mod = Module::Info->new_from_file('Some/Module.pm'); # my @packages = $mod->packages_inside; my @subs = $mod->subroutines;

« subroutines …Returns a hash of all subroutines defined inside this module and some info about it. The key is the *full* name of the subroutine (ie. $subs{'Some::Module::foo'} rather than just $subs{'foo'}), value is a hash ref with information about the subroutine…»

«The Crux of the Biscuit is the Apostrophe»

  • Comment on Re: extracting subroutine names (together with their packages) via PPI
  • Download Code