Module::Reader
Read the source of a module like perl does
- Provided by: libmodule-reader-perl (Version: 0.002003-1)
- Report a bug
Read the source of a module like perl does
use Module::Reader qw(:all);
my $io = module_handle('My::Module');
my $content = module_content('My::Module');
my $io = module_handle('My::Module', @search_dirs);
my $io = module_handle('My::Module', @search_dirs, { found => \%INC });
Reads the content of perl modules the same way perl does. This includes reading modules available only by @INC hooks, or filtered through them.
Returns an IO handle to the given module. Searches the directories specified, or @INC if none are.
Options
Returns the content of the given module. Accepts the same options as "module_handle".
haarg - Graham Knop (cpan:HAARG) <haarg@haarg.org>
None yet.
Copyright (c) 2013 the Module::Reader "AUTHOR" and "CONTRIBUTORS" as listed above.
This library is free software and may be distributed under the same terms as perl itself.