NAME

Require::Hook::Noop - No-op loading of some modules

VERSION

This document describes version 0.002 of Require::Hook::Noop (from Perl distribution Require-Hook-Noop), released on 2017-01-21.

SYNOPSIS

{
    local @INC = (Require::Hook::Noop->new( modules => [qw/Foo::Bar Qux/] ));
    require Foo::Bar; # will be no-op'ed
    require Baz;      # will be loaded
    # ...
}

DESCRIPTION

This is a Require::Hook version of lib::noop.

METHODS

new([ %args ]) => obj

Constructor. Known arguments:

  • modules => array

    Module names to no-op, e.g. ["Mod::SubMod", "Mod2"].

  • debug => bool

    If set to true, will print debug statements to STDERR.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Require-Hook-Noop.

SOURCE

Source repository is at https://github.com/perlancar/perl-Require-Hook-Noop.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Require-Hook-Noop

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

lib::noop

Other Require::Hook::* modules.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.