[libmodule-want-perl] 03/03: control
gregor herrmann
gregoa at debian.org
Wed Jan 1 22:56:31 UTC 2014
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libmodule-want-perl.
commit 019ce01e742fedf858884b526b6effb715b8a296
Author: gregor herrmann <gregoa at debian.org>
Date: Wed Jan 1 23:55:32 2014 +0100
control
---
debian/control | 37 ++++++++-----------------------------
1 file changed, 8 insertions(+), 29 deletions(-)
diff --git a/debian/control b/debian/control
index f9a1a24..f2bc212 100644
--- a/debian/control
+++ b/debian/control
@@ -1,12 +1,12 @@
Source: libmodule-want-perl
-Section: perl
-Priority: optional
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: gregor herrmann <gregoa at debian.org>
+Section: perl
+Priority: optional
Build-Depends: debhelper (>= 8)
Build-Depends-Indep: libfile-path-tiny-perl,
- libtest-carp-perl,
- perl
+ libtest-carp-perl,
+ perl
Standards-Version: 3.9.5
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libmodule-want-perl.git
Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libmodule-want-perl.git
@@ -14,35 +14,14 @@ Homepage: https://metacpan.org/release/Module-Want
Package: libmodule-want-perl
Architecture: all
-Depends: ${misc:Depends}, ${perl:Depends},
- libfile-path-tiny-perl,
- libtest-carp-perl
-Description: Check @INC once for modules that you want but may not have
+Depends: ${misc:Depends},
+ ${perl:Depends}
+Description: 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. On and on it goes :)
+ 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.
- .
- For example, this searches @INC for X.pm every iteration of the loop:
- .
- while( ... ) {
- .
- if (eval { require X; 1 }) {
- .
- ... use X code ...
- .
- }
- .
- else {
- .
- ... do X-alternative code ...
- .
- }
- .
- }
- .
- This description was automagically extracted from the module by dh-make-perl.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmodule-want-perl.git
More information about the Pkg-perl-cvs-commits
mailing list