Use DynaLoader like this:
packageModule
; require DynaLoader; @ISA = qw(... DynaLoader ...); bootstrapModule
;
The bootstrap
method calls
your module’s bootstrap routine directly if the module is statically
linked into Perl. Otherwise, the module inherits the bootstrap
method from DynaLoader, which
loads in your module and calls its bootstrap
method.
18.119.159.178