Binary package “libmodule-want-perl” in ubuntu lunar
module to check @INC only once for wanted modules
Sometimes you want to lazy load a module for use in, say, a loop or function.
First you do the eval-require but then realize if the module is not available
it will re-search @INC each time. So then you add a lexical boolean to your
eval and do the same simple logic all over the place.
.
Module::Want encapsulates that logic so that have_mod() is like eval {
require X; 1 } but if the module can't be loaded it will remember that fact
and not look in @INC again on subsequent calls.
Source package
Published versions
- libmodule-want-perl 0.6-5 in amd64 (Proposed)
- libmodule-want-perl 0.6-5 in amd64 (Release)
- libmodule-want-perl 0.6-5 in arm64 (Proposed)
- libmodule-want-perl 0.6-5 in arm64 (Release)
- libmodule-want-perl 0.6-5 in armhf (Proposed)
- libmodule-want-perl 0.6-5 in armhf (Release)
- libmodule-want-perl 0.6-5 in i386 (Proposed)
- libmodule-want-perl 0.6-5 in i386 (Release)
- libmodule-want-perl 0.6-5 in ppc64el (Proposed)
- libmodule-want-perl 0.6-5 in ppc64el (Release)
- libmodule-want-perl 0.6-5 in riscv64 (Proposed)
- libmodule-want-perl 0.6-5 in riscv64 (Release)
- libmodule-want-perl 0.6-5 in s390x (Proposed)
- libmodule-want-perl 0.6-5 in s390x (Release)