Please bottom post....

> 
> so does that mean a recompile of perl ?  Can't I just edit that array to 
> include this path?
> that is right @INC is not correct.  What is an example of you PERL5LIB 
> variable?
> 

No recompile needed. You have a number of ways to update @INC, none of
which involves (to my knowledge) PATH.  You can set the PERL5LIB
environment variable, in bash I use,

export PERL5LIB=/var/domains/danconia/lib:/var/domains/lib

Alternatively for a more permanant solution you can set it inside of a
script with,

use lib qw( /var/domains/danconia/lib /var/domains/lib );

Or various wranglings using FindBin depending on your script location
and whether it is relative to the libs,

use FindBin;
use lib "$FindBin::Bin/../../lib";
use lib "$FindBin::Bin/../lib";

perldoc FindBin

HTH,

http://danconia.org


-- 
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