soren has asked for the wisdom of the Perl Monks concerning the following question:

Ok, I'm newbie, now thats cleared up :-) I want a cgi script to call a program on the server, and then format STDOUT with something like "&response=" for each line. I actually allready did this, but the output is first printed when the program ends. I would like it to do it "streaming". I'm calling it from flash, and I wnat flash to show the progress of the program :-)

Replies are listed 'Best First'.
Re: formatting STDOUT
by mpolo (Chaplain) on May 15, 2001 at 20:36 UTC
    On a modern Apache server, you will need to flush the output data by setting $|=1 at the top of your script. This would probably work on other servers as well...