Paranoid::Module -- Paranoid Module Loading Routines
$Id: lib/Paranoid/Module.pm, 2.07 2019/01/30 18:25:27 acorliss Exp $
use Paranoid::Module; $rv = loadModule($module, qw(:all));
This provides a single function that allows you to do dynamic loading of modules at runtime, along with importation of the exported symbol table. Specific functions and/or tag sets can be declared, just as you would in a normal use or import statement.
$rv = loadModule($module, qw(:all));
Accepts a module name and an optional list of arguments to use with the import function. Returns a true or false depending whether the require was successful.
Carp
Paranoid
Paranoid::Debug
Paranoid::Input
The loadModule cannot be used to require external files, it can only be used to load modules in the existing library path. In addition, while we track what symbol sets (if any) were imported to the caller's name space the return value doesn't reflect the value of the import method. This is intentional because not every module out there offers a properly coded import function or inherits it from Exporter(3)). The return value from import is ignored.
Arthur Corliss (corliss@digitalmages.com)
This software is licensed under the same terms as Perl, itself. Please see http://dev.perl.org/licenses/ for more information.
(c) 2005 - 2017, Arthur Corliss (corliss@digitalmages.com)
To install Paranoid, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paranoid
CPAN shell
perl -MCPAN -e shell install Paranoid
For more information on module installation, please visit the detailed CPAN module installation guide.