Perl Programming/Keywords/eof

The eof keyword

eof is a function that returns 1 for true, if the next read over the file handle will return an end-of-file, or the file to be accessed by FILE_HANDLE is not open.

Syntax

  eof FILE_HANDLE