Giter VIP home page Giter VIP logo

module-reader's Introduction

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

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( $module_name, @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( $module_name, @search_dirs, \%options )
    Returns the content of the given module. Accepts the same options as
    "module_handle".

AUTHOR
    haarg - Graham Knop (cpan:HAARG) <[email protected]>

  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.

module-reader's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.