Mega Code Archive
Categories
/
Perl
/
File
Reference eof function from file handle to check if it is the end of file
use IO::File; $filehandle = new IO::File; $filehandle->open("
eof) { $filehandle->read($newtext, 1); $text .= $newtext; } print $text; $filehandle->close;