Hello, 
I know, under perl, if you want to change the environment vars, you
should update %ENV, the copy of your process itself. But if all related
settings are another batch file, say setting.bat, it's hard to handle
it. Simple run this file in your perl script is not enough since perl
will just open a new environment space, call the batch file in the space
and then close it, the environment perl runs itself will not change. I
googled this issue, and find some solutions, but they seem messy.
So, my question is, is there another way to do this simple and elegant?

setting.bat:
set FOO_PATH=C:\

my.pl:
#some way to call setting.bat
print `set POO_PATH`;

I expect my.pl prints 
FOO_PATH=C:\

Best regards, 
Bingfeng 



Reply via email to