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

Use the -e filetest operator. For example:
(-e 'input.dat') or die;
  • Comment on Re: How do I test if I file exists without attaching a filehandle to it?
  • Download Code