Want my perl CGI program to continue without waiting for return from a subroutine
Posted on 2007-12-04
I'm writing perl CGI programs that will run a Web site. On one page, if the user clicks on a link, he initiates some processing, and he'll be taken to another page. The processing will read data from a couple other Web sites, process the data, and send email to the user. But there's no reason the user should have to wait for all that to happen before being sent to the next page for him to view. The processing could happen in the background, so to speak.
I'd like to find a way for the program that initiates the processing to continue, sending the user to his new page, without waiting for the processing to finish. Is there a way to do that?