lib::disallow - Disallow a list of modules from being locateable/loadable
This document describes version 0.27 of lib::disallow (from Perl distribution lib-filter), released on 2016-08-24.
% perl -Mlib::disallow=YAML,YAML::Syck,YAML::XS yourscript.pl
This pragma is a shortcut for lib::filter. This:
use lib::disallow qw(YAML YAML::Syck YAML::XS);
is equivalent to:
use lib::filter disallow=>'YAML;YAML::Syck;YAML::XS';
Please visit the project's homepage at https://metacpan.org/release/lib-filter.
Source repository is at https://github.com/perlancar/perl-lib-filter.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=lib-filter
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.
lib::filter
If an application checks the availability of modules by using Module::Path or Module::Path::More instead of trying to load them, you can try: Module::Path::Patch::Hide or Module::Path::More::Patch::Hide.
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 lib::filter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm lib::filter
CPAN shell
perl -MCPAN -e shell install lib::filter
For more information on module installation, please visit the detailed CPAN module installation guide.