GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MODULE::READER (3)

.ds Aq ’

NAME

Module::Reader - Read the source of a module like perl does

CONTENTS

SYNOPSIS



    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 });



DESCRIPTION

Reads the content of perl modules the same way perl does. This includes reading modules available only by @INC hooks, or filtered through them.

EXPORTS

module_handle( CW$module_name, CW@search_dirs, \%options )

Returns an IO handle to the given module. Searches the directories specified, or @INC if none are.

Options
found A reference to a hash like %INC with module file names (in the style ’My/Module.pm’) as keys and full file paths as values. Modules listed in this will be used in preference to searching through directories.

module_content( CW$module_name, CW@search_dirs, \%options )

Returns the content of the given module. Accepts the same options as module_handle.

AUTHOR

haarg - Graham Knop (cpan:HAARG) <haarg@haarg.org>

    CONTRIBUTORS

None yet.

COPYRIGHT

Copyright (c) 2013 the Module::Reader AUTHOR and CONTRIBUTORS as listed above.

LICENSE

This library is free software and may be distributed under the same terms as perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MODULE::READER (3) 2014-08-21

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.