Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How to stream output to html page?

by TOD (Friar)
on Mar 02, 2008 at 05:14 UTC ( [id://671464]=note: print w/replies, xml ) Need Help??


in reply to How to stream output to html page?

there are several ways to satisfy your intentions. here are two of them:
1. set $| to a true value. this will autoflush the output stream after each print statement.
2. take a look at the htt protocol. there is e.g. the response code 206 "partial content", or the widely unknown response code 100 "continue", which both might be of interest for you.
--------------------------------
masses are the opiate for religion.

Replies are listed 'Best First'.
Re^2: How to stream output to html page?
by Anonymous Monk on May 14, 2014 at 12:54 UTC
    Note: On a simple setup (such as Apache/Windows/Strawberry Perl) if you don't add a
    to insert a newline as part of the print, then it won't flush.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-25 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found