extends require to avoid eval in user-visible code.

This commit is contained in:
espie 2006-11-05 10:37:20 +00:00
parent 56ca89b8c7
commit 6e53832d31
4 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/11/05 10:37:20 espie Exp $
COMMENT= "extends require to work on variables"
DISTNAME= UNIVERSAL-require-0.10
PKGNAME= p5-Universal-require-0.10
CATEGORIES= devel perl5
# Same as Perl
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=UNIVERSAL/}
CONFIGURE_STYLE=perl
PKG_ARCH= *
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (UNIVERSAL-require-0.10.tar.gz) = 4ea51136ee7052bb37dc52c7cb8945b0
RMD160 (UNIVERSAL-require-0.10.tar.gz) = eada258d66b69bcfa64babeb12f2ddcb78a9a861
SHA1 (UNIVERSAL-require-0.10.tar.gz) = 4ea9b47a41f88d96a1c6469de428192ea9212775
SIZE (UNIVERSAL-require-0.10.tar.gz) = 3642

View File

@ -0,0 +1,10 @@
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;

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/11/05 10:37:20 espie Exp $
${P5SITE}/UNIVERSAL/
${P5SITE}/UNIVERSAL/require.pm
@man man/man3p/UNIVERSAL::require.3p