title: How can I get rid of the STDERR in Perl
body: <p>I'm using some system commands in Perl. </p>
  
  <p>In the below case I was getting output as follows: </p>
  
  <pre><code>ls: import-log.*: No such file or directory
  
  ls: error-log.*: No such file or directory
  
  No specified files found for deletion
  </code></pre>
  
  <p><strong>My code:</strong></p>
  
  <pre><code>sub monthoryear() 
  {
  
    @importlog = `ls -al import-log.*`;
  
    @errorlog = `ls -al error-log.*`;
  
  }
  </code></pre>
  
  <p><strong>I don't want to see the following in the output even if there are no files.</strong> </p>
  
  <pre><code>ls: import-log.*: No such file or directory &amp;
  
  ls: error-log.*: No such file or directory
  </code></pre>