in reply to Blank html page when long processing at serverside
Check out my column on this very subject. And feel free to enter other keywords of interest into the search box at the bottom of each page to find other interesting perl snippets.
In Section
Seekers of Perl Wisdom