https://github.com/swuecho/meta
https://github.com/swuecho/meta
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/swuecho/meta
- Owner: swuecho
- Created: 2013-04-16T19:54:56.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-05-15T02:15:54.000Z (almost 12 years ago)
- Last Synced: 2025-01-22T15:45:57.947Z (3 months ago)
- Language: Perl
- Size: 113 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# NAME
Acme::SWUECHO::Meta - a set of tool to learn modules.
# SYNOPSIS
use Acme::SWUECHO::Meta;
methods_in_current_pkg# DESCRIPTION
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\_in\_current\_pkg
@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.
copied from
http://stackoverflow.com/questions/607282/whats-the-best-way-to-discover-all-subroutines-a-perl-module-has
## module\_path
$module_path = module_path($module);
find the module path
## subs\_in\_pkg
@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.# AUTHOR
Hao Wu
# COPYRIGHT
Copyright 2013- Hao Wu
# LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.# SEE ALSO