What does this rant have to do with my comment, to which it is
apparently a follow-up?
As opposed to moronic whackadoos who have power trips?
Imminent Death of The Net Predicted!
Begone, loser. You are but a flyspeck on the long history of Usenet.
lonk:
Hey thanks Chris.
I don't know of the GPL cut/paste thing you referr too (but i'm gonna
find out).
All I know is that some really strange people here and have done
nothing but attacked me what ever I post (right or wrong).
Could be I (and like any other human being) make mistakes.
Jeez, whats the test for that? Don't everybody take a shit in the
morning/night and don't it stink?
Well, after your post, I offered the real solution to OP's problem.
It didn't relate to GPL. Here it is:
Thanks!
-rfc
=============================
$line = '';
while(1) {
while ( ($line .= <MYLOG> ) )
{
if ($line =~ /[\n]+/) {
print ("GOT THIS: ",$line);
$line = '';
}
}
seek (MYLOG,0, 1);
sleep (1);
}
Quote from somewhere: "each call reads and returns the next line,
until
end-of-file is reached".
'seek (MYLOG,0, 1)' is resetting the eof condition on the FH which you
get everytime.
It just so happends there was no "\n" in the last chars flushed from
the buffer but it does go to an eof.
<MYLOG> will return on $/ or eof otherwise it would not return at the
end.