Perl-Sensitive Sunglasses | |
PerlMonks |
Keeping visitors waitingby Anonymous Monk |
on Jul 25, 2001 at 21:22 UTC ( [id://99738]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi -
I'm using LWP::Simple to retrieve a number of pages based on user input. Because of the complexity of each page, my "roll a six to start" host, and the complex regexs I'm using, it takes a while. A long while. A very long while.
Now, I'm worried that Joe User will either:
So I'm looking to keep the user informed as to how the process is doing. I've tried using JavaScript to put status messages into text boxes at the top of each page, but the Perl script seems to emit only "chunks" of text and doesn't send text line-by-line, so the status boxes don't change. Could this be related to Cgi-wrap? Or is it because Perl's waiting for the complete page-retrieval subroutine to finish before printing the text?
Thanks ppl!
Back to
Seekers of Perl Wisdom
|
|