title: How to see if a directory exists or not in Perl?
body: <p>To see if a file exists before using it, we can use:</p>
  
  <pre><code>if (-e "filename.cgi")
  {
   #proceed with your code
  } 
  </code></pre>
  
  <p>But how to indentify a directory exists or not?</p>