faqts : Computers : Programming : Languages : Perl

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 1 people (100%) answered Yes
Recently 1 of 1 people (100%) answered Yes


How do I get delayed output from a CGI script without changing the script code?

May 10th, 2002 17:04
John B, Ryan Bellen,

To delay the output, add a sleep call.
print "Hello there<BR>";
sleep(10);   # sleep for 10 seconds
print "You should see this after 10 seconds have elapsed.<BR>";