-eof

Synopsis

-eof $handle

A predicate to check if the reader portion of the handle is closed (end of file)

Parameters

$handle - the handle to check.

Returns

True or false and this operator is only usable in a comparison context.

Examples

$handle = openf("/etc/hosts"); while (!-eof $handle) { $text = readln($handle); print("."); } println("\ndone!");

................. done!

See Also