in reply to Re^2: CGI script calling a perl script
in thread CGI script calling a perl script

I'm not entirely sure about CGI but as it uses STDOUT underneath a
use IO::Handle; STDOUT->autoflush(1);
should at least get the HTML out to the web server. It won't solve the problem of the CGI script not exiting and thus not sending an EOF to the browser though, so the browser will keep showing "page loading". Maybe you can close STDOUT before exiting?

Replies are listed 'Best First'.
Re^4: CGI script calling a perl script
by Anonymous Monk on Apr 24, 2013 at 20:44 UTC
    Unfortunately the flush didn't change anything. Closing STDOUT didn't help either. Seems like a simple thing I need to do - call a perl script, let it run in the background and continue serving HTML.