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 the DynaLoader manpage.
Ilya Zakharevich: extraction from DynaLoader.