| [reply] [d/l] [select] |
Also from perlrun
-f
Disable executing $Config{sitelib}/sitecustomize.pl at startup.
Perl can be built so that it by default will try to execute $Config{sitelib}/sitecustomize.pl at startup. This is a hook that allows the sysadmin to customize how perl behaves. It can for instance be used to add entries to the @INC array to make perl find modules in non-standard locations.
- Miller
| [reply] |
It is my understanding that the list for @INC is created when perl is compiled, so adding a path to @INC globally would have to be done when compiling perl.
| [reply] [d/l] [select] |
The following two methods may be used to append to Perl's @INC array:
1. Add the directory to the PERL5LIB environment variable.
2. Add use lib 'directory'; in your Perl script.
| [reply] |