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

My perl script is outputting to an html file. Was wondering if there were a way to have the script refresh the html page. It's set up kind of crazy right now. I go to one page to run the script so that it will update the html content, but the html page needs to be manually refreshed everytime.

Replies are listed 'Best First'.
Re: Are there any refresh commands?
by Daddio (Chaplain) on Apr 19, 2001 at 00:19 UTC

    How about a <META> tag?

    You could use a

    <META http-equiv="refresh" content="15,url=/your_page.html">

    combined with a

    <META http-equiv="Pragma" content="no-cache">

    to force a refresh from the server.

Re: Are there any refresh commands?
by tadman (Prior) on Apr 18, 2001 at 23:54 UTC
    You could always make your Perl script output some data that is used by a CGI script later, or if this is too much work, you can either:
    • Configure your Web server to expire the generated page immediately (i.e. Apache's mod_expire)
    • Write a CGI script that merely reads in the HTML file and outputs the content, which is usually not cached by the browser