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
From:
Rafael Garcia-Suarez
Date:
August 29, 2001 02:57
Subject:
Re: [PATCH] put useful info in %INC for files loaded by a hook in @INC
Message ID:
20010829120335.G4453@rafael
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 AutoLoader.pm are properly loaded via
a hook, because AutoLoader implements a fall-back when it can't find
the file : it uses require "auto/....al" (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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About