How do you run the second script? If you go through system or exec, no variables that you change in the first script should have any effect on the second - except %ENV.
Also if you go through system, the @INC should be independent from the caller.
So please check if you have any perl-related environment variables set, and unset them if necessary. See perlrun for a list of variables that influence perl.
In reply to Re: @INC array and two perl versions
by moritz
in thread @INC array and two perl versions
by nikunjv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |