BSD Ports

devel/p5-UNIVERSAL-require 0.19 DragonFly

Perl module to require() from a variable

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
8.5 KiB, 14.9 KiB installed

Description

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 a lot more sense to someone who's not a ninth level Perl acolyte.

In the other systems

SystemPortVersion
DragonFlydevel/p5-UNIVERSAL-require0.19
FreeBSDdevel/p5-UNIVERSAL-require0.19
NetBSDdevel/p5-UNIVERSAL-require0.19nb5
MidnightBSDdevel/p5-UNIVERSAL-require0.19
HardenedBSDdevel/p5-UNIVERSAL-require0.19
GhostBSDdevel/p5-UNIVERSAL-require0.19
OPNsensedevel/p5-UNIVERSAL-require0.19

Install

Binary package:

pkg install p5-UNIVERSAL-require

From DPorts:

cd /usr/dports/devel/p5-UNIVERSAL-require && make install clean

Dependencies

Run dependencies 1