http://www.perlmonks.org?node_id=418257


in reply to Stopping Program

You haven't provided enough detail for us to adequately answer your question.

What kind of program is it? command-line? CGI? Tk?

Show some of your code, and explain things a bit more.

In the simplest case, if it's a command-line program and you are printing to STDOUT as you go, you can fix your buffering problems with a simple $| = 1;

If it's a CGI program, you might need to look at merlyn's oft-referenced column.

--
edan