UNIVERSAL::require - require() modules from a variable https://www.cpan.org
Go to file
2024-01-06 09:50:57 +01:00
perl-UNIVERSAL-require.spec automatic version update by autodist [release 0.19-1mamba;Mon Mar 29 2021] 2024-01-06 09:50:57 +01:00
README.md perl 5.16 mass rebuild [release 0.13-2mamba;Tue Nov 13 2012] 2024-01-06 09:50:56 +01:00

perl-UNIVERSAL-require

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