Thank you drieux. The suggestion from your link handles it (I've made minor modifications)!
You're right. Checking sizes is a good idea. Ciao, BrunoF -----Original Message----- From: drieux [mailto:[EMAIL PROTECTED]] Sent: Terça-feira, 2 de Abril de 2002 13:11 To: [EMAIL PROTECTED] Subject: Re: Better "tail -f" On Tuesday, April 2, 2002, at 04:30 , Bruno Figueira wrote: > However, if another program removes (all) lines from the file referenced > by > FH, perl looses the trailing (for a undetermined time). How do I improve > this code to understand the file was changed? I misread your problem - then ran into it... used the p2 code from yesterday in p2>filename and it made: http://www.wetware.com/drieux/CS/lang/Perl/Beginners/file_change_while_taili ng.txt act stoopid - till I put the spare subroutine into reset to begining.... ciao drieux -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]