Paranoid::Module(3pm)

Paranoid::Module3pm

Usage

  use Paranoid::Module;
  $rv = loadModule($module, qw(:all));

Version

$Id: lib/Paranoid/Module.pm, 2.10 2022/03/08 00:01:04 acorliss Exp $

Overview

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.

Import lists

This module exports the following symbols by default:

    loadModule

The following specialized import lists also exist:

    List        Members
    --------------------------------------------------------
    all         @defaults

Subroutines/methods

loadModule

  $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.

Dependencies

o

Carp

o

Paranoid

o

Paranoid::Debug

o

Paranoid::Input

Bugs and limitations

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.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

Author

Arthur Corliss ([email protected])

From libparanoid-perl 2.10-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.