in reply to Tailing a file to a TCP socket

try changing your seek($LOGFILE, $curpos, 0); to a seek($LOGFILE,0,1); to simply reset the EOF without changing your position... maybe that will help

Update in doing so you shouldn't need the tells and starage of curpos any more...

                - Ant