jkva has asked for the wisdom of the Perl Monks concerning the following question:

Perl Monks, for some time I have been working on a perl script which pulls a lot of information out of a mysql database, processes it and gives output which then can be printed. The retrieving of the data and processing goes fine. Printing about two to five pages of data goes fine. But when I give enough input to process about 60 pages of data, it seems that : The browser (IE || Mozilla) tells me that it keeps getting data, even while it doesn't. Halway through the document it just stops printing. When I just retrieve and process the data and run the script without printing anything, all is fine. Google wasn't much help, neither was the CGI help file... so I turn to you people for enlightenment.
Thanks in advance.

Det

Replies are listed 'Best First'.
Re: Problem with a printing CGI script.
by pelagic (Priest) on Apr 28, 2004 at 07:18 UTC
    You might be suffering of buffering ...
    what is your $| set to?
    I'd set it like $| = 1; i.e. autoflush ON.

    pelagic
      I have set $| to 1, but it does not seem to help. Thanks for your help, as well as for mentioning perlvar. I was (oh noob that I am) not aware of its existence. Salutations, Detonite
Re: Problem with a printing CGI script.
by ccn (Vicar) on Apr 28, 2004 at 07:55 UTC
    You might try wget to check if your script works as you want