alle opties
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Bron: libmodule-want-perl  ]

Pakket: libmodule-want-perl (0.6-5)

Verwijzigingen voor libmodule-want-perl

Screenshot

Debian bronnen:

Het bronpakket libmodule-want-perl downloaden:

Beheerders:

Externe bronnen:

Vergelijkbare pakketten:

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.

Tags: Softwareontwikkeling: Ontwikkelen in Perl, Bibliotheken, Implemented in: Perl

Andere aan libmodule-want-perl gerelateerde pakketten

  • depends
  • recommends
  • suggests
  • enhances

libmodule-want-perl downloaden

Pakket downloaden voor alle beschikbare platforms
Platform Pakketgrootte Geïnstalleerde grootte Bestanden
all 12,1 kB30,0 kB [overzicht]