in reply to How to stream output to html page?

Depending on the page encoding, you may need to output chunks of NUL chars to fill up the client's buffer. Some browsers tend to wait until the input buffer is filled before doing any character conversions:
# run process 1... print $output1; print "\0" x 1024; # run process 2... print $output2; print "\0" x 1024; # run process 3... print $output3; print "\0" x 1024;

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}