title: How can close and reopen STDOUT in Perl?
body: <p>I'd like to close STDOUT to prevent my code from outputing a particular image that I need for further computation but do not want on my web page.</p>
  
  <p>So i want to close STDOUT, do what I have to do with my code, then reopen STDOUT to output stuff to a web page. <strong>(Not to a file)</strong></p>
  
  <p>What I tried is:</p>
  
  <pre><code>    close STDOUT;
      # my code here
      open STDOUT;
  </code></pre>
  
  <p>This doesn't work...</p>
  
  <p>Thanks</p>