develooper Front page | perl.perl5.porters | Postings from August 2001

Re: [PATCH] put useful info in %INC for files loaded by a hook in @INC

Thread Previous | Thread Next
Rafael Garcia-Suarez
August 29, 2001 02:57
Re: [PATCH] put useful info in %INC for files loaded by a hook in @INC
Message ID:
On 2001.08.28 18:31:17 +0200 Gisle Aas wrote:
> What is still missing is to make sure pp_require() invokes the hook
> again when an absolute filename starting with things like
> "/loader/0x81095c8/" is used.  Currently this bypass the @INC search
> which is quite likely to make the require fail.

There are other problems.

First, note that modules that use are properly loaded via
a hook, because AutoLoader implements a fall-back when it can't find
the file : it uses require "auto/" (a relative path).

Modules that use DynaLoader can't be loaded, because *.so files
(or equivalent) are not found. To make this work, it's necessary
to patch DynaLoader in some way. There are many solutions. (One of
them is to add 'caveat' about this in the docs. I don't like the
idea of getting binaries from anywhere. They're less portable than
Perl source.)

What do people think about this ?

Rafael Garcia-Suarez

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About