Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have pasted this code in cgi-bin directory. when i tried to run throuth command prompt it first displays Hello then World with a sleep of 10 sec. In case of browser Hello and World are coming at once without any time delay. can anyone suggest me a method to how to flush the vales to the browse?????#!/usr/bin/perl use CGI; $| = 1; print "Content-type: text/html\n\n"; print "Hello"; sleep 10; print "World\n";
Edited by Chady -- code tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Query about Perl-CGI
by muba (Priest) on Jul 08, 2004 at 10:37 UTC | |
|
Re: Query about Perl-CGI
by jeffa (Bishop) on Jul 08, 2004 at 14:37 UTC |