Package Info

perl-UNIVERSAL-require


Require() modules from a variable [deprecated]


Unspecified

Before using this module, you should look at the alternatives, some of which are listed in SEE ALSO below.

This module provides a safe mechanism for loading a module at runtime, when you have the name of the module in 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.


License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/UNIVERSAL-require

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.19-bp155.2.12 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-UNIVERSAL-require
0.19-bp154.1.26 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-UNIVERSAL-require
0.18-bp153.1.15 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-UNIVERSAL-require
0.18-bp152.3.16 info GA Release 2020-04-16 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-UNIVERSAL-require
0.18-bp151.3.1 info GA Release 2019-07-16 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-UNIVERSAL-require
0.18-bp151.2.14 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-UNIVERSAL-require
0.18-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-UNIVERSAL-require