merlyn has an article on this topic.
In reply to Re^3: calling one cgi script from another by derby in thread calling one cgi script from another by Anonymous Monk