title: How can I open() and close() STDERR in Perl?
body: <p>Greetings ,</p>
  
  <p>I can close the STDERR in perl using;</p>
  
  <pre><code>close(STDERR)
  </code></pre>
  
  <p>and after executing some logic , I want to open it back again.
  How can I do it?</p>
  
  <p>I tried </p>
  
  <pre><code>open(STDERR,"&gt;&amp;STDERR");
  </code></pre>
  
  <p>and didn't work.</p>
  
  <p>Thanks in advance.</p>