Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: How to stream output to html page?

by lidden (Curate)
on Mar 01, 2008 at 21:29 UTC ( #671430=note: print w/replies, xml ) Need Help??


in reply to Re: How to stream output to html page?
in thread How to stream output to html page?

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.

Replies are listed 'Best First'.
Re^3: How to stream output to html page?
by akho (Hermit) on Mar 01, 2008 at 21:41 UTC
    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://671430]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2023-12-10 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (38 votes). Check out past polls.

    Notices?