libmodule-want-perl binary package in Ubuntu Xenial amd64
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.
Publishing history
Date | Status | Target | Component | Section | Priority | Phased updates | Version | ||
---|---|---|---|---|---|---|---|---|---|
2015-10-22 15:20:22 UTC | Published | Ubuntu Xenial amd64 | release | universe | perl | Optional | 0.6-2 | ||
|