I am executing a perl script on windows, using a batch script. I am setting below variable in batch script:
SET PATH_VAR=C:\Users\
I am able to access PATH_VAR in perl as below:
my $path1 = $ENV{'PATH_VAR'}
I would like to also export environment variables set in perl to batch. Like the inverse of what I am doing now. Is there a way to do that?
PS: I tried this, but it doesn't work:
$ENV{'PATH_Z'}="Hello World";