title: How can I test if a filename matching a pattern exists in Perl?
body: <p>Can I do something like this in Perl? Meaning pattern match on a file name and check whether it exists.</p>
  
  <pre><code>    if(-e "*.file")
      {
        #Do something
      }
  </code></pre>
  
  <p>I know the longer solution of asking system to list the files present; read it as a file and then infer whether file exists or not.</p>