Reg: Perl CGI script Autoupdate with New Data

前端 未结 1 1386
你的背包
你的背包 2020-12-22 04:58

Hi This script is taking 3*2 secs time and then printing the output in the browser at once, help re

#!C:/perl/bin/perl.exe
use warnings;
use strict;
use CGI;         


        
1条回答
  •  独厮守ぢ
    2020-12-22 05:31

    You can set $| = 1; to flush the output buffer with each print, but it looks like Apache will wait for the script to finish running before returning anything, so you might need to move your sleep logic into client side JavaScript.

    0 讨论(0)
提交回复
热议问题