On Sun, 2 Apr 2000, Hui Zhu wrote:

> I wrote perl script to out put messages.
> It is supposed to output one line per 4 seconds.
> But  the server did not output the result per 4 seconds instead output
> all of results after 40 seconds

Set $| = 1;

OT: You can do neat stuff with $| = 1 and Javascript.  I wrote a CGI that
does some time consuming checks and displays the results by changing the
graphics on the output page with <script> blocks as the data comes in.
Both Netscape and IE execute the scripting as soon as they receive it, 
rather than waiting for the page to finish loading.

- Matt

Reply via email to