Imported p5-UNIVERSAL-requirefrom pkgsrc-wip.

UNIVERSAL::require - require() modules from a variable.

If you've ever had to do this...

    eval "require $module";

to get around the bareword caveats on require(), this module is for
you. It creates a universal require() class method that will work with
every Perl module and its secure. So instead of doing some arcane
eval() work, you can do this:

    $module->require;

It doesn't save you much typing, but it'll make alot more sense to
someone who's not a ninth level Perl acolyte.

WWW: http://search.cpan.org/dist/UNIVERSAL-require/

Packaged by Roman Kulik.
This commit is contained in:
rillig 2006-01-21 10:42:13 +00:00
parent 71cd38615d
commit 084cc7de04
4 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,17 @@
UNIVERSAL::require - require() modules from a variable.
If you've ever had to do this...
eval "require $module";
to get around the bareword caveats on require(), this module is for
you. It creates a universal require() class method that will work with
every Perl module and its secure. So instead of doing some arcane
eval() work, you can do this:
$module->require;
It doesn't save you much typing, but it'll make alot more sense to
someone who's not a ninth level Perl acolyte.
WWW: http://search.cpan.org/dist/UNIVERSAL-require/

View file

@ -0,0 +1,15 @@
# $NetBSD: Makefile,v 1.1.1.1 2006/01/21 10:42:13 rillig Exp $
DISTNAME= UNIVERSAL-require-0.10
PKGNAME= p5-${DISTNAME}
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/M/MS/MSCHWERN/}
MAINTAINER= kuli0020@umn.edu
HOMEPAGE= http://search.cpan.org/dist/UNIVERSAL-require/
COMMENT= Perl module to require() from a variable
PERL5_PACKLIST= auto/UNIVERSAL/require/.packlist
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2006/01/21 10:42:13 rillig Exp $

View file

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1.1.1 2006/01/21 10:42:13 rillig Exp $
SHA1 (UNIVERSAL-require-0.10.tar.gz) = 4ea9b47a41f88d96a1c6469de428192ea9212775
RMD160 (UNIVERSAL-require-0.10.tar.gz) = eada258d66b69bcfa64babeb12f2ddcb78a9a861
MD5 (UNIVERSAL-require-0.10.tar.gz) = 4ea51136ee7052bb37dc52c7cb8945b0
Size (UNIVERSAL-require-0.10.tar.gz) = 3642 bytes