From: "B. Fongo" <[EMAIL PROTECTED]>
> Is it recommendable to use the pragma "use lib " when installing a
> program on a server shared by many users?  Assuming my IPS did not
> install certain CPAN modules which my needs, and I decide to install
> them in my www directory. In such a scenario, putting "use lib" on my
> scripts will add my module directory to @INC - which in fact isn't
> desired.

1) not sure how do you have this setup, but the directory containing 
the modules should not be accessible via web

2) having a
        use lib 'something';
in a script affects @INC just for this script. Which in fact is 
desired. You need to do so, otherwise the modules would not be found.

You may remove the directory from the @INC after you import the 
modules with
        BEGIN {shift(@INC)};
(assuming you are sure the directory was NOT present in @INC before!) 
but I do not see any reason to do so.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to