in reply to How do I test if I file exists without attaching a filehandle to it?

Note that most file test operators imply existence when they return a true value. So -r actually means "exists and is readable", and so on. So if you are interested not only on existence, but on some other specific condition of the file, you can simply use the appropriate operator and skip -e altogether.
  • Comment on Re: How do I test if I file exists without attaching a filehandle to it?