http://qs321.pair.com?node_id=181389

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

Greetings fellow monksters! I am trying to write a progress bar of sorts just to let the user know something is happening. I have the the following code that works fine AS LONG AS THIS SCRIPT IS CALLED DIRECTLY from the browser. Meaning if I type in the URL then the script will run and a "." will show up every second.

BUT, if I make this script the <form action=progress.cgi method=post> from another script then when there will be a 10 second pause and the ".........." string is written all at once!

What gives? Im running Apache 1.3.14 so nph is no longer and issue .. yes? Perl: 5.005_03 built for sun4-solaris

Thanks!

# # progress.cgi # $|=1; print "Content-Type: text/html\n\n"; for ($i=1;$i<=10;$i++) { print "."; select(undef,undef,undef,1); }