in reply to Re^2: replicating the command 'unset LIBPATH' in perl
in thread replicating the command 'unset LIBPATH' in perl
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} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: replicating the command 'unset LIBPATH' in perl
by viffer (Beadle) on May 18, 2010 at 06:35 UTC | |
by Anonymous Monk on May 18, 2010 at 07:00 UTC | |
by JavaFan (Canon) on May 18, 2010 at 07:35 UTC | |
by viffer (Beadle) on May 19, 2010 at 02:07 UTC | |
by Anonymous Monk on May 19, 2010 at 03:06 UTC | |
|