Net::DNS::SEC::Tools::BootStrap(3pm)

Net::DNS::SEC::Tools::BootStrap3pm

Optional loading of perl modules

Usage

  use Net::DNS::SEC::Tools::BootStrap;
  dnssec_tools_load_mods(
     PerlModule => 'Additional help/error text'
  );

Overview

The DNSSEC-Tools package requires a number of Perl modules that are only needed by some of the tools. This module helps determine at run-time, rather than at installation time, if the right tools are available on the system. If any module fails to load, dnssec_tools_load_mods() will display an error message and calls exit(). The error message describes how to install a module via CPAN.

The arguments to dnssec_tools_load_mods() are given in pairs. Each pair is a module to try to load (and import) and a supplemental error message. If the module fails to load, the supplemental error message will be displayed along with the installation-via-CPAN message. If the error message consists of the string "noerror", then no error message will be displayed before the function exits.

Caveats

The module will try to import any exported subroutines from the module into the main namespace. This means that the BootStrap.pm module is likely to not be useful for importing symbols into other modules. Work-arounds for this are:

- import the symbols by hand
  dnssec_tools_load_mods(
     PerlModule => 'Additional help/error text'
  );
  import PerlModule qw(func1 func2);
  func1(arg1, arg2);
- call the fully qualified function name
  dnssec_tools_load_mods(
     PerlModule => 'Additional help/error text'
  );
  PerlModule::func1(arg1, arg2);

Releases

3 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0
  2. 7
  3. Arch

Author

Wes Hardaker <[email protected]>

From dnssec-tools 2.2.3-16 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.