Hello Ikegami...
Yes..I cannot modify the batch file. It is as it is and I was thinking of doing one of 2 things:
1. Small batch/shell script that first calls the env var batch/shell script and then my perl script - this would ensure that the env variables are set before my perl script is executed.
2. Use the File Open in Perl to read the batch/shell script and execute each line like a perl command....not sure if do-able ?