|
|
| XP is just a number | |
| PerlMonks |
Re: Who modifies $ENV{PATH}?by tobyink (Prior) |
| on Dec 06, 2012 at 10:35 UTC ( #1007524=note: print w/ replies, xml ) | Need Help?? |
|
You could try adding the following right at the top of your script. (Even add it before use strict - before everything else except perhaps the #! line.)
That will print out a warning including a stack trace (which shows line numbers, etc) whenever %ENV values are assigned. If that doesn't help, then you could also try hooking the DELETE and CLEAR methods (the example above just hooks STORE).
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||