- or download this
eof FILEHANDLE
eof ()
...
"eof(FILEHANDLE)" on it) after end-of-file is
reached. File types such as terminals may lose
the end-of-file condition if you do.
- or download this
Practical hint: you almost never need to use "eof"
in Perl, because the input operators typically
return "undef" when they run out of data, or if
there was an error.
- or download this
while (<STDIN>) {
print;
print "***\n";
}
- or download this
while (<STDIN>) {
print $_, "***\n";
}