Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Guys! Im writing a chat type program in perl, its very basic, but I am currently having a problem. I am printing the conversation from a text file, which requires a HTML page refreshing every few seconds to print the file - very annoying! Is there a way to actually use perl to read the file as it is written, displaying it in real time? Please advise, thank you so much

Replies are listed 'Best First'.
Re: Perl Printing an Active File
by Aristotle (Chancellor) on Jul 26, 2003 at 22:30 UTC
    Please explain your problem better. What creates this HTML page and who does the refreshing? Is this for a CGI script? What is the Perl script reading the file "as it is written" supposed to do?

    Makeshifts last the longest.