XSLoader - Dynamically load C libraries into Perl code
package YourPackage; use XSLoader; XSLoader::load 'YourPackage', @args;
This module defines a standard simplified interface to the dynamic linking mechanisms available on many platforms. Its primary purpose is to implement cheap automatic dynamic loading of Perl modules.
For more complicated interface see DynaLoader. Many (most) features of DynaLoader are not implemented in XSLoader, like for example the dl_load_flags is not honored by XSLoader.
Ilya Zakharevich: extraction from DynaLoader.