Search results for "module:require"

Require::Hook - Namespace for require() hooks River stage zero No dependents

As one already understands, Perl lets you put coderefs or objects in @INC as "hooks". This lets you do all sorts of things when it comes to loading modules, for example: * faking that a module does not exist when it does This can be used for testing....

PERLANCAR/Require-Hook-0.002 - 13 Nov 2020 00:25:30 UTC

Require::Util - Utilities related to require() River stage zero No dependents

EXPERIMENTAL....

PERLANCAR/Require-Util-0.002 - 03 Nov 2021 00:06:11 UTC

Test2::Require - Base class and documentation for skip-unless type test packages. River stage four • 632 direct dependents • 5663 total dependents

Test2::Require::* packages are packages you load to ensure your test file is skipped unless a specific requirement is met. Modules in this namespace may subclass Test2::Require if they wish, but it is not strictly necessary to do so....

EXODIST/Test2-Suite-0.000145 - 04 Mar 2022 23:11:08 UTC

Module::Require River stage zero No dependents

This module provides a way to load in a series of modules without having to know all the names, but just the pattern they fit. This can be useful for allowing drop-in modules for application expansion without requiring configuration or prior knowledg...

JSMITH/Module-Require-0.05 - 05 Mar 2004 17:08:07 UTC

require::relative - like require for relative paths River stage one • 1 direct dependent • 1 total dependent

Behaves like require but accepts relative file name. Primary motivation is for usage in tests where multiple tests can share configuration or setup....

BARNEY/require-relative-1.0.0 - 14 Nov 2021 16:37:13 UTC

circular::require - detect circularity in use/require statements River stage one • 1 direct dependent • 1 total dependent

Perl by default just ignores cycles in require statements - if Foo.pm does "use Bar" and Bar.pm does "use Foo", doing "use Foo" elsewhere will start loading Foo.pm, then hit the "use" statement, start loading Bar.pm, hit the "use" statement, notice t...

RJBS/circular-require-0.12 - 18 Mar 2016 01:40:37 UTC

Require::HookChain - Chainable require hook River stage zero No dependents

This module lets you create chainable require hooks. As one already understands, Perl lets you put a coderef or object in @INC. In the case of object, its "INC" method will be called by Perl: package My::INCHandler; sub new { ... } sub My::INCHandler...

PERLANCAR/Require-HookChain-0.003 - 02 Jan 2021 00:05:22 UTC

first - use the first loadable module in a list River stage one • 2 direct dependents • 3 total dependents

Two main circumstances I've encountered where this is useful is: * when you have a list of modules that have the same interface but are more desirable for one reason or another like speed, portability, or availability. use first 'CGI::Simple', 'CGI::...

DMUEY/first-v0.0.1 - 03 Feb 2007 16:40:49 UTC

lib/Rex/Require.pm River stage two • 16 direct dependents • 16 total dependents

FERKI/Rex-1.13.4 - 05 Jul 2021 21:04:56 UTC

lib::require::all - A tiny pragma to load all files from a lib directory River stage one • 2 direct dependents • 2 total dependents

lib::require::all is a pragma to load all "*.pm" files in a given directory ("lib" by default). The lib directory is automatically added to @INC via lib pragma automatically. Handy to preload all modules with tools like forkprove....

MIYAGAWA/lib-require-all-0.01 - 09 Nov 2012 03:58:41 UTC

UNIVERSAL::require - require() modules from a variable [deprecated] River stage three • 200 direct dependents • 593 total dependents

Before using this module, you should look at the alternatives, some of which are listed in SEE ALSO below. This module provides a safe mechanism for loading a module at runtime, when you have the name of the module in a variable. If you've ever had t...

NEILB/UNIVERSAL-require-0.19 - 27 Mar 2021 15:52:16 UTC

Acme::require::case - Make Perl's require case-sensitive River stage one • 1 direct dependent • 1 total dependent

This module overrides "CORE::GLOBAL::require" to make a case-sensitive check for its argument. This prevents "require foo" from loading "Foo.pm" on case-insensitive filesystems. It does not respect any prior "require" overrides, since it completely r...

DAGOLDEN/Acme-require-case-0.013 - 27 May 2017 11:49:55 UTC

Require::Hook::More - Load module like perl, with more options River stage zero No dependents

This require hook behaves like perl when loading modules from (the rest of the) @INC. Read "require" in perlfunc for more details. basically perl supports having scalar (directory names), or scalarref, or globref (filehandle), or coderef, or objects ...

PERLANCAR/Require-Hook-More-0.001 - 04 Jan 2020 05:31:55 UTC

Require::Hook::Noop - No-op loading of some modules River stage zero No dependents

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

PERLANCAR/Require-Hook-Noop-0.002 - 21 Jan 2017 09:40:25 UTC

Test2::Require::Perl - Skip the test unless the necessary version of Perl is installed. River stage four • 632 direct dependents • 5663 total dependents

Sometimes you have tests that are nice to run, but depend on a certain version of Perl. This package lets you run the test conditionally, depending on if the correct version of Perl is available....

EXODIST/Test2-Suite-0.000145 - 04 Mar 2022 23:11:08 UTC

Test2::Require::Fork - Skip a test file unless the system supports forking River stage four • 632 direct dependents • 5663 total dependents

It is fairly common to write tests that need to fork. Not all systems support forking. This library does the hard work of checking if forking is supported on the current system. If forking is not supported then this will skip all tests and exit true....

EXODIST/Test2-Suite-0.000145 - 04 Mar 2022 23:11:08 UTC

Test2::Require::EnvVar - Only run a test when a specific environment variable is set. River stage four • 632 direct dependents • 5663 total dependents

It is common practice to write tests that are only run when an environment variable is set. This module automates the (admittedly trivial) work of creating such a test....

EXODIST/Test2-Suite-0.000145 - 04 Mar 2022 23:11:08 UTC

Test2::Require::Module - Skip tests if certain packages are not installed, or insufficient versions. River stage four • 632 direct dependents • 5663 total dependents

Sometimes you have tests that are nice to run, but depend on tools that may not be available. Instead of adding the tool as a dep, or making the test always skip, it is common to make the test run conditionally. This package helps make that possible....

EXODIST/Test2-Suite-0.000145 - 04 Mar 2022 23:11:08 UTC

Require::Hook::MetaCPAN - Load module source code from MetaCPAN River stage zero No dependents

PERLANCAR/Require-Hook-MetaCPAN-0.001 - 09 Jan 2017 12:30:38 UTC

Test2::Require::Threads - Skip a test file unless the system supports threading River stage four • 632 direct dependents • 5663 total dependents

It is fairly common to write tests that need to use threads. Not all systems support threads. This library does the hard work of checking if threading is supported on the current system. If threading is not supported then this will skip all tests and...

EXODIST/Test2-Suite-0.000145 - 04 Mar 2022 23:11:08 UTC
33 results (0.024 seconds)