Doug MacEachern wrote:
> 
> On Sat, 13 May 2000, Robert Nice wrote:
> 
> > use lib '../site_perl';
> 
> it's been explained, 'use lib' happens at compile time (once per-script)
> and @INC is reset to whatever it was startup time after each request.  the
> simple solution for you, which i didn't see mentioned, is to modify @INC
> at runtime, e.g.

This was one of those times where the cause was understood, I was
just looking for a solution. It's quite interesting some of the
private discussions and solutions that I've been engaged in. Some
people have sent me sizeable chunks of code to get around it. I'm
currently using a startup script with a use lib which is fine,
however ....

> unshift @INC, '../site_perl';

... if this works (and I can't see why it wouldn't) all I can say
is "Damn, why didn't I think of that!". Why didn't anybody else?
For some reason I thought 'use lib' did something special, too much
faith that's my problem. Someone put it in the guide please ;-)

On another speculative note seeing as 'use strict' changes compiler
behaviour somewhat is it feasable to write a module that would
convert or modPerlise a script to catch half the stuff that comes
up on this list every week? Hmmmmmmmm?

Thanks,
-- 
Robert Nice

Reply via email to