Rafael Garcia-Suarez <[EMAIL PROTECTED]> writes:

> This patch makes useful the info put in %INC when a file is
> loaded via a hook. So, if several hooks are put in @INC, it's
> possible to know which hook loaded which module.

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.

If you for instance try to serve up the Tk modules via a hook like
this you will discover that it has a special AUTOLOAD function that
construct absolute file names based on the %INC value.  It will then
load its .al files like this:

    require '/loader/0x81095c8/auto/Tk/Frame/scrollbars.al';


Reply via email to