I know there is the built-in eof function, but that seems to tell you that the NEXT read will be EOF. Is there a way to read a line and check if a returned error is EOF?
For example:
Where $the_error is like $? or something like that...and EOF is some built-in error number??
Thanks!
For example:
Code:
$line = <THIS> || goto DONE if ($the_error == EOF);
Thanks!