Maelwys has asked for the wisdom of the Perl Monks concerning the following question:
Basically it repeats those last few lines for a while, each time a new line of input is written to the server, it reads it into the program, prints it to the output, and then waits for the next line of input to appear.open (SOMEOUT,">&STDOUT"); print SOMEOUT "HTTP/1.0 200\n"; print SOMEOUT "Content-type: text/html\n\n"; print SOMEOUT "Text goes here\n"; print SOMEOUT "$line"; print SOMEOUT "<SCRIPT> scroll(); </SCRIPT> \n "; close (SOMEOUT); open (SOMEOUT,">&STDOUT");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trouble with Streaming text to STDOUT
by robartes (Priest) on Oct 03, 2002 at 14:56 UTC | |
by Maelwys (Initiate) on Oct 03, 2002 at 17:58 UTC | |
by robartes (Priest) on Oct 03, 2002 at 22:39 UTC | |
|
Re: Trouble with Streaming text to STDOUT
by charnos (Friar) on Oct 03, 2002 at 14:57 UTC | |
|
Re: Trouble with Streaming text to STDOUT
by fglock (Vicar) on Oct 03, 2002 at 19:19 UTC |