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

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

I have a cgi that has a number of subroutines to perform after a form input. At the end of each subroutine, I would like a message output to the monitor immediately instead of waiting for all subroutines to complete before printing to screen.

In other words, when subroutine#1 is complete, the message "# 1 complete..." would appear on the monitor, then say 2 seconds later when subroutine#2 is complete, the message "#2 complete..." would appear, and so on.

I've seen this on a number of occassions but can't locate the proper commands/syntax .

Thanks.

Edit kudra, 2002-05-01 Added (CGI) to title