in reply to
Issue with env variables set through dos batch
I'm not really familiar with DOS batch files, but on linux a shell script (the equivalent to a batch file) is run in a new process. And when the process exits, its environment variables vanish with it.
There you need to launch the perl script that is supposed to see the environment variables from within the shell script, so that it is a subprocess of the shell which holds the interesting environment variables.
To check if that's the case in DOS/Windows too, simply inspect the environment variables on the dos prompt after you ran the batch file.