Not even if you are sending the intermediate count and expecting it to be received. The script will finish executing no matter what happens to the browser. What will happen is that the browser will not accept the result page from the server (if you even send one... you didn't mention that) and the server will add an error note to its log. All of this is irrelevant to the Perl program, though. The only things that would cause it not to successfully complete would be a _server_ hardware problem or a deliberate kill signal. Even if your cgi is sending an updated ("refreshed") page every second with the latest count, the counting itself would not be interrupted unless you were expecting your user to physically click a button for each update.
There's a lot missing from your question, so I'd suggest that you spend a bit of time thinking and reading about how a webserver, a browser, and the web operate. | [reply] |