in reply to printing lines of a changing document
Their suggested solution is along the lines of:
(re-constructed from memory and some of my scripts)
The PCB also mentions that IO::Handle but I don't have an example of that quickly availible.open (FH, "filename") or die "Unable to open file: $!"; $DELAY = 5; for(;;) { while(<FH>) { #do stuff here } sleep $DELAY seek(FH, 0, 1); }
I'll leave the display portion for you or another monk as I don't have any TK experience.
Update: Added the seek line that should have always been there...not sure how I missed it in preview.
|
|---|