You might find it helpful to read
perlipc. There is a very interesting section called "Complete Dissociation of Child from Parent" and the section following it called "Safe Pipe Opens" in which it demonstrates how to make your single program go multiprocess.