June 11th, 2000, 05:11 PM
Is it possible to change the location that @INC points to in PERL? I am running the script through telenet, but it will not run the include scripts I added.
June 12th, 2000, 04:25 AM
>>Is it possible to change the location that @INC points to in PERL?
You can't change to another location.
If your perl module was installed in another non-standard location, you can add a "use lib" line.
Here is an example of my most frequently use perl module..
Fields.pm is in this non-standard location: /home/username/public_html/lib/Sort/Fields.pm
You would need to add the following to your script:
use lib '/home/username/public_html/lib';
Doing so will not change the path of your @INC, however, it will add the "use lib" path in addition to its search path.