in reply to Finding loadable objects (script refuses to fail)
Later on it does a dl_load_file of $file, which for POSIX.pl will contain <directory containing POSIX.pm>/auto/POSIX/POSIX.so. So, if your script can find POSIX.pm, it can find POSIX.so.my @modparts = split(/::/,$module); my $modfname = $modparts[-1]; my $modpname = join('/',@modparts); my $modlibname = (caller())[1]; my $c = @modparts; $modlibname =~ s,[\\/][^\\/]+$,, while $c--; # Q&D basename my $file = "$modlibname/auto/$modpname/$modfname.$dl_dlext";
This is just a naieve browsing of XSLoader and POSIX.pm code, however, so I might be wrong. You will find some salt in the monastery's kitchen :).
CU
Robartes-
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Finding loadable objects (script refuses to fail)
by hawtin (Prior) on Mar 12, 2003 at 14:38 UTC |