Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > ebf17416d07b7ac5f55b183914e3af37 > files > 11

perl-XSLoader-0.160.0-4.mga4.x86_64.rpm

# This example shows how to load the POSIX object module.
# As no version is specified in the XSLoader::load() and in the bootstrap()
# calls, this example will work with any version. Also note that we use 
# __PACKAGE__ instead of hard-coding the name of the package;

package POSIX;

eval {
    require XSLoader;
    XSLoader::load(__PACKAGE__);
    1
} or do {
    require DynaLoader;
    push @ISA, 'DynaLoader';
    bootstrap(__PACKAGE__);
};