in reply to How do you modify the Win32 PATH statement in a Perl script?

you can add your path to the 'lib' within the script
This will ensure that the path is not available outside the script & you can use whatever modules/directories there
You can also run the command 'set' on windows command line and grep for what directory you want (using perl)
Type `set /?` to know more about it...
use lib 'E:\Modules'; #OR `set $cmd`
Raghu