The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Search results for "dist:lib-filter filter"

lib::filter - Allow/disallow loading modules River stage three • 5 direct dependents • 680 total dependents

lib::filter lets you allow/disallow loading modules using some rules. It works by installing a coderef in @INC (and additionally by pruning some entries in @INC). The main use-case for this pragma is for testing. It has been pointed out to me that fo...

PERLANCAR/lib-filter-0.281 - 29 Aug 2021 01:14:01 UTC

lib::allow - Only allow a list of modules to be locateable/loadable River stage three • 5 direct dependents • 680 total dependents

This pragma is a shortcut for lib::filter. This: use lib::allow qw(Foo Bar::Baz Qux); is equivalent to: use lib::filter allow_core=>0, allow_noncore=>0, allow=>'Foo;Bar::Baz;Qux';...

PERLANCAR/lib-filter-0.281 - 29 Aug 2021 01:14:01 UTC

lib::disallow - Disallow a list of modules from being locateable/loadable River stage three • 5 direct dependents • 680 total dependents

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';...

PERLANCAR/lib-filter-0.281 - 29 Aug 2021 01:14:01 UTC

lib::coreplus - Allow core modules plus a few others River stage three • 5 direct dependents • 680 total dependents

This pragma uses lib::filter's custom "filter" to accomplish its function. Rationale for this pragma: using "lib::filter"'s "allow_noncore=0"+"allow" doesn't work for non-core XS modules because "allow_noncore=0" will remove non-core directories from...

PERLANCAR/lib-filter-0.281 - 29 Aug 2021 01:14:01 UTC
4 results (0.036 seconds)