libmodule-want-perl_0.6-1_all.deb


Advertisement

Description

libmodule-want-perl - module to check @INC only once for wanted modules

Distribution: Debian 8 (Jessie)
Repository: Debian Main i386
Package name: libmodule-want-perl
Package version: 0.6
Package release: 1
Package architecture: all
Package type: deb
Installed size: 57 B
Download size: 11.48 KB
Official Mirror: ftp.br.debian.org
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.

Alternatives

Requires

    Download

    Source package: libmodule-want-perl

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install libmodule-want-perl deb package:
      # sudo apt-get install libmodule-want-perl

    Files

    • /usr/share/doc/libmodule-want-perl/changelog.Debian.gz
    • /usr/share/doc/libmodule-want-perl/changelog.gz
    • /usr/share/doc/libmodule-want-perl/copyright
    • /usr/share/man/man3/Module::Want.3pm.gz
    • /usr/share/perl5/Module/Want.pm

    Changelog

    2014-01-02 - gregor herrmann <gregoa@debian.org> libmodule-want-perl (0.6-1) unstable; urgency=low * Initial release (closes: #733903).

    Advertisement
    Advertisement