Can I do something like this in Perl? Meaning pattern match on a file name and check whether it exists.
    if(-e "*.file")
    {
      <Do something> 
    }
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.