title: How to export environment variable set in perl script to batch shell?
body: <p>I am executing a perl script on windows, using a batch script.
  I am setting below variable in batch script:</p>
  
  <pre><code>SET PATH_VAR=C:\Users\
  </code></pre>
  
  <p>I am able to access <code>PATH_VAR</code> in perl as below:</p>
  
  <pre><code>my $path1 = $ENV{'PATH_VAR'}
  </code></pre>
  
  <p>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?</p>
  
  <p>PS:
  I tried this, but it doesn't work:</p>
  
  <pre><code>$ENV{'PATH_Z'}="Hello World";
  </code></pre>