Jan 13, 2016, 10:58 AM
Post #1 of 4
I work in a multi-server environment. Each server may have its own Perl installation (worse, they have several installations to support old levels of Perl... don't ask :(
Add a directory to @INC on the installation level
Now, there is a service which is shared by all servers and there is a dedicated shared mount for that server. Let's assume that I could have an open-to-all directory named:
/servicename/perl/lib or something similar, and let's assume that I could install all perl packages related to that service on that directory. How would I add that directory to the @INC on the install level (i.e. users should have all packages on that directory available too them without any 'use lib', '-I', etc. The user should just say 'use COMMONSERVICE::Specificpackage;' and be done with?