in reply to printing lines of a changing document

This is answered in perlfaq5, specifically How do I do a tail -f in perl?. The seek-based solution there may work better than the filehandle read, depending on if the external program adds line endings.

The requisite module is probably File::Tail.

Update: Fixed the link, thanks to Albannach.

  • Comment on Re: printing lines of a changing document