⭐ in reply to How do I test if I file exists without attaching a filehandle to it?
(-e 'input.dat') or die; [download]