BootStrap(3)
π NAME π
okay bestie, welcome to BootStrap(3) β the User Contributed Perl Documentation page that's basically the optional-module bouncer for Perl. This is all about Net::DNS::SEC::Tools::BootStrap β optional loading of Perl modules, and yes, it's lowkey iconic. π
β¨ SYNOPSIS β¨
use Net::DNS::SEC::Tools::BootStrap;
dnssec_tools_load_mods(
PerlModule => 'Additional help/error text'
);
πΈ DESCRIPTION πΈ
So the DNSSEC-Tools package needs a whole bunch of Perl modules, but plot twist: only some of the tools actually need them. This module is the bestie that helps figure out at run-time β not at installation time β whether the right tools are available on the system. Run-time vibe check, basically. π«Ά
If any module fails to load, dnssec_tools_load_mods() will display an error message and call exit(). The error message describes how to install a module via CPAN. It's not subtle, but it is helpful. π
The arguments to dnssec_tools_load_mods() are given in pairs. Each pair is a module to try to load (and import) plus a supplemental error message. If the module fails to load, that supplemental error message gets displayed along with the installation-via-CPAN message.
β οΈ special-case energy: if the error message consists of the string "noerror", then no error message will be displayed before the function exits. Silent exit, no drama. π
π¦ CAVEATS π¦
The module will try to import any exported subroutines from the module into the main namespace. This means the BootStrap.pm module is likely to not be useful for importing symbols into other modules. Not me explaining namespace chaos, but here we are. π
Work-arounds for this are:
- import the symbols by hand β manual import era:
dnssec_tools_load_mods(
PerlModule => 'Additional help/error text'
);
import PerlModule qw(func1 func2);
func1(arg1, arg2);
- call the fully qualified function name β no import, just full-name main character energy:
dnssec_tools_load_mods(
PerlModule => 'Additional help/error text'
);
PerlModule::func1(arg1, arg2);
π COPYRIGHT π
Copyright 2006-2014 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.
π AUTHOR π
Wes Hardaker <hardaker@users.sourceforge.net>
π SEE ALSO π
β¨ okay that's the whole page: perl v5.44.0, dated 2026-10-17, and the manual is BootStrap(3). mwah ππ«Ά
π¦ where this page comes from
- arch rolling: dnssec-tools 2.2.3-16 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms