I had tried the delete $ENV{LIBPATH} and it's right near the top of script.
You missed the part about using BEGIN. The idea is to execute it before any use statements are executed, and you'll need BEGIN for that.
BEGIN { delete $ENV{LIBPATH} }
In reply to Re^3: replicating the command 'unset LIBPATH' in perl
by ikegami
in thread replicating the command 'unset LIBPATH' in perl
by viffer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |