Have a look at DBI, fork, and clone.
In reply to Re: Execute query in fork by kyle in thread Execute query in fork by manoj_speed