http://www.perlmonks.org?node_id=152566


in reply to Perl runs away....

If you need not wait for the script to return a value to the user, you could send the client a redirect-header and then fork()-ing the script into the background.
You can also implement a JavaScript solution which only allows one submit action, as seen here or here.