Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (24 sloc) 0.563 kb
use Config *;
my $conf = tora_config();
my $SOEXT = $conf['SHLIBSUFFIX'];
sub load($pkg) {
for $LIBPATH -> $path {
my $fname = $path + "/" + $pkg.replace('::', '/') + $SOEXT;
if (-e $fname) {
DynaLoader.load($fname, 'Init_' + $pkg.replace('::', '_'));
return undef;
}
}
die "Cannot load extension library: " + $pkg + ". It's not in \$LIBPATH";
}
__END__
NAME
----
XSLoader - Extension module loader
SYNOPSIS
--------
use XSLoader;
XSLoader.load("JSON")
AUTHOR
------
Tokuhiro Matsuno
Jump to Line
Something went wrong with that request. Please try again.