Caesura has asked for the wisdom of the Perl Monks concerning the following question:
In one tab the text is printed as it goes, the other it waits.#!/usr/bin/perl # $Header$ use strict; use CGI qw(:standard); # No buffering of output to browser. # $|++; print header; print qq { <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=wind +ows-1252"> <META NAME="Generator" CONTENT="vi"> <TITLE>the Title</TITLE> </HEAD> <BODY> }; print "Starting ...<br>\n"; for (my $i=0; $i < 10; $i++) { print "$i<br>\n"; sleep 1; } print "</BODY></HTML>"; exit;
Any pointers would be useful, I'm sure its obvious, but I can't put my finger on why these things are different, running the same perl file.AuthUserFile /the_root/dir_one/security/security.pwd AuthGroupFile /dev/null AuthName EnterPassword Authtype Basic require valid-user
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cgi buffering
by ccn (Vicar) on Sep 30, 2009 at 15:45 UTC | |
by afoken (Chancellor) on Sep 30, 2009 at 19:44 UTC | |
by Caesura (Sexton) on Oct 01, 2009 at 09:36 UTC | |
by Caesura (Sexton) on Sep 30, 2009 at 16:06 UTC | |
by ccn (Vicar) on Sep 30, 2009 at 16:22 UTC | |
|
Re: cgi buffering
by Anonymous Monk on Sep 30, 2009 at 15:41 UTC | |
by Caesura (Sexton) on Sep 30, 2009 at 16:03 UTC | |
by Anonymous Monk on Oct 01, 2009 at 00:28 UTC |