in reply to Add directry to @INC system wide
Maybe, you can edit the system wide perl customization file?
Run the following one liner to see if your Perl installation was compiled supporting this hook:
perl -MConfig -e 'print $Config{usesitecustomize} ? "yes, edit $Confi +g{sitelib}/sitecustomize.pl" : "no luck", "\n"'
Then, in ..../sitecustomize.pl:
use lib qw(/my/preferred/dir); print "SITECUSTOMIZE: INC: @INC\n" if $ENV{DEBUG_SITECUSTOMIZE}; # j +ust for fun
However, users can prevent loading this file using the -f switch (see perlrun). If this is not acceptable, you need to compile your own perl executable as other monks already suggested.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Add directry to @INC system wide
by Anonymous Monk on Mar 07, 2013 at 21:56 UTC | |
by taint (Chaplain) on Apr 24, 2013 at 03:32 UTC |