Module::Path::More::Patch::Hide - Hide some modules from Module::Path::More
This document describes version 0.002 of Module::Path::More::Patch::Hide (from Perl distribution Module-Path-More-Patch-Hide), released on 2016-07-10.
% PERL5OPT=-MModule::Path::More::Patch::Hide=-module,'Foo::Bar;Baz' app.pl
In the above example app.pl will think that Foo::Bar and Baz are not installed even though they might actually be installed.
app.pl
Foo::Bar
Baz
This module can be used to simulate the absence of certain modules. This only works if the application uses Module::Path::More's module_path() to check the availability of modules.
module_path()
This module works by patching module_path() to return empty result if user asks the modules that happen to be hidden.
wrap module_path
module_path
-module => str
A string containing semicolon-separated list of module names to hide.
Please visit the project's homepage at https://metacpan.org/release/Module-Path-More-Patch-Hide.
Source repository is at https://github.com/perlancar/perl-Module-Path-More-Patch-Hide.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Module-Path-More-Patch-Hide
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.
Module::Patch
Module::Path::More
If the application checks he availability of modules by actually trying to require() them, you can try: lib::filter, lib::disallow.
require()
perlancar <perlancar@cpan.org>
This software is copyright (c) 2016 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.
To install Module::Path::More::Patch::Hide, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Path::More::Patch::Hide
CPAN shell
perl -MCPAN -e shell install Module::Path::More::Patch::Hide
For more information on module installation, please visit the detailed CPAN module installation guide.