in reply to Re: Has my Perl Go Crazy?
in thread Has my Perl Go Crazy?

read all newline terminated lines

and also the last line, even if it is not newline terminated.