In Perl to Raku guide - functions§

See primary documentation in context for eof.

  • eof FILEHANDLE

In Raku, this is not usable as a function, but only as a method. I. e. $filehandle.eof. Returns True if at end of file.