![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
RE: Background Processby BBQ (Curate) |
on Jun 26, 2000 at 05:08 UTC ( [id://19784]=note: print w/replies, xml ) | Need Help?? |
I usually just reverse the order of things. Print out the html response, then do whatever it is you need to do. In cases such as sending emails, its not that big of an issue to print out first and send the email later, but I would recommend against this if the user has requested to update a database or do something that would require an error message in case it fails. This doesn't solve your problem 100% since the browser's status icon will keep moving until the script has actually finished off, but at least you'll get some output first and the user can continue to navigate without having to wait for completion. #!/home/bbq/bin/perl # Trust no1!
In Section
Seekers of Perl Wisdom
|
|