in reply to Calling a perl script from cgi

Could it be that fork is the answer to your problems?

Malk.