PhillipHuang has asked for the wisdom of the Perl Monks concerning the following question:

Hi,is there any way to set perl @INC as environment parameter? I try to set @INC by perl scripts, and it could only take effect at compile time. Please see below, the new path '/usr/share/perl5' is missing.
phillip@athens:/tmp$ perl -e 'push(@INC,"/usr/share/perl5");print @INC +,"\n"' /usr/local/lib/perl5/site_perl/5.15.8/i686-linux/usr/local/lib/perl5/s +ite_perl/5.15.8/usr/local/lib/perl5/5.15.8/i686-linux/usr/local/lib/p +erl5/5.15.8./usr/share/perl5 phillip@athens:/tmp$ perl -e 'print @INC,"\n"' /usr/local/lib/perl5/site_perl/5.15.8/i686-linux/usr/local/lib/perl5/s +ite_perl/5.15.8/usr/local/lib/perl5/5.15.8/i686-linux/usr/local/lib/p +erl5/5.15.8.

Replies are listed 'Best First'.
Re: how to config @INC as system-level env parameter
by kcott (Archbishop) on Mar 15, 2012 at 07:25 UTC
Re: how to config @INC as system-level env parameter
by Anonymous Monk on Mar 15, 2012 at 11:06 UTC