in reply to How to stream output to html page?

No, the webpage is sent to the browser as a whole. So you can't do this from the ccgi script itself. You can, however, do something like this with JavaScript on the client side. (that is, periodically query the server and ask if it has new stuff)

Replies are listed 'Best First'.
Re^2: How to stream output to html page?
by lidden (Curate) on Mar 01, 2008 at 21:29 UTC
    Not true:
    #!/usr/bin/perl -wT use strict; use warnings 'FATAL' => 'all'; use CGI ':standard'; use 5.010000; $|++; print header; print start_html('Dots'); say 'One dot per second.<br>'; for ( 1 .. 30 ) { print '. '; sleep 1; } print end_html;
    Runs here.

    Update: Removed dead link.

      Does not run in lynx.

      This method requires a cooperating webserver, a cooperating browser, very simple formatting of the webpage and a certain degree of contempt towards standards and best practices.