Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have like 30 lines and it takes 40+seconds to load the first half, then it prints right.
#!/usr/bin/perl use warnings; use strict; $|=1; use CGI qw/:standard/; print header; print "line one<br>\n"; sleep(3); print "line two<br>\n"; sleep(3); print "line three<br>\n"; sleep(3); print "line four\n"; print "<br>\n"; sleep(3);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cgi with sleep
by maa (Pilgrim) on Apr 01, 2004 at 08:58 UTC | |
|
Re: cgi with sleep
by eserte (Deacon) on Apr 01, 2004 at 09:43 UTC | |
by ccn (Vicar) on Apr 01, 2004 at 10:20 UTC | |
by eserte (Deacon) on Apr 01, 2004 at 11:34 UTC | |
|
Re: cgi with sleep
by inman (Curate) on Apr 01, 2004 at 09:54 UTC | |
by davido (Cardinal) on Apr 01, 2004 at 17:53 UTC |