./devel/p5-UNIVERSAL-require, Perl module to require() from a variable

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2013Q4, Version: 0.15, Package name: p5-UNIVERSAL-require-0.15, Maintainer: pkgsrc-users

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.


Required to run:
[lang/perl5]

Master sites: (Expand)

SHA1: 92f9374f7d254759ba0de32daf023dea14c019fd
RMD160: ee0f1bf59ce350bd57971ab476555550d2af8e3f
Filesize: 4.894 KB

Version history: (Expand)