DynaLoader

The standard Perl interface to the dynamic linking mechanisms available on many platforms.

Using DynaLoader

Use DynaLoader like this:

package Module; require DynaLoader; @ISA = qw(... DynaLoader ...); bootstrap Module;


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.

Extending to New Architectures

If you want to extend DynaLoader to a new architecture, you need to know about its internal interface. The variables it uses are:

Of the following subroutines, bootstrap and dl_findfile are standard across all platforms and are defined in DynaLoader.pm. The others are defined in the .xs file that supplies the implementation for the platform.