BSD Ports

devel/p5-Universal-require 0.19 OpenBSD

extends require to work on variables

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
devel, perl5

Description

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-&gt;require;

Install

Binary package:

pkg_add p5-Universal-require

From the ports tree:

cd /usr/ports/devel/p5-Universal-require && make install

Dependencies