Adding
BEGIN { delete $ENV{PERL5LIB} };
... to the top if the script shouldn't mess anything up. It will only have any effect on child processes launched by the script - e.g. things launched using system() or backticks.
In reply to Re^3: combination of multiple installed Perls and some environment variables cause segfaults
by tobyink
in thread combination of multiple installed Perls and some environment variables cause segfaults
by dlamb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |