in reply to Re: Getting the ENV from the .bat file
in thread Getting the ENV from the .bat file
Agreed. You're doing things back to front. The batch file sets up the environment then runs the Perl script, not the other way round.
If you want to do it the other way round the batch file is actually a configuration file, so just read in values e.g.
host:myhost.somewhere.com
port:389
basedn:dc=myldap