Acme::SWUECHO::Meta - a set of tool to learn modules.
use Acme::SWUECHO::Meta; methods_in_current_pkg
Acme::SWUECHO::Meta is a set of tool to learn modules. This is a Acme package, but no one can stop you from using it.
@methods = methods_in_current_pkg;
find all the method imported in current package. you can get the information from the doc, but not always. However, you can alway get the information from the source code.
The typical usage is to know what methods or funciton are available after you use module in your script.
use module
copied from
http://stackoverflow.com/questions/607282/whats-the-best-way-to-discover-all-subroutines-a-perl-module-has
$module_path = module_path($module);
find the module path
@methods = subs_in_pkg($module);
this is a method using PPI to do the work, so no need to run the acutual module, but it only include the method find in the module_path.
Hao Wu <echowuhao@gmail.com>
Copyright 2013- Hao Wu
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Acme::SWUECHO::Meta, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::SWUECHO::Meta
CPAN shell
perl -MCPAN -e shell install Acme::SWUECHO::Meta
For more information on module installation, please visit the detailed CPAN module installation guide.