in reply to valid filehandle
if (!open FILE, "<test.txt") { # do something if can't open } else { # do something if it is opened for reading } [download]