Henrik Tougaard wrote:
>
> Use lib adds the global directory to @INC at compile time, no lib removes it
> again [at compile time].
>
> All use's in the script will find files in the globaldir, as will requires
> - as long as they are in a BEGIN block! Ifg they are outside a BEGIN block,
> then the global dir is absent from @INC - even if it has cartefully been put
> there beforehand.
>
> Suggestion:
> remove the 'no lib' line
>
> I can't see that it could have any negative effects - quite contariwise!
> This will allow requires to require files in golbaldir as per the
For web servers that have lots of Globals set, @INC can
get huge, growing by one for each Global configured. For
virtual hosting scenarios, with each app getting its own
global, @INC will bloat by the number of virtual hosts.
This has been a problem before.
I can try a work around where the code does something like:
sub Apache::ASP::Execute {
...
local @INC = ($Global, @INC);
...
}
This is nice because @INC will be magically restored
to how it was before after each script execute, so
that lots of ASP applications with different Global's
set will not see each others Global directory.
This may also mean that manipulations of @INC during
an executing script will not be remembered later, but
this is probably a good thing anyway.
--Josh
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks Founder Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]