in reply to Fork and multiple subs

As suggested, you have 2 options:

* 'require' modules dynamically in the child process
* 'exec' completely different program

In either case the performance hit of recompiling the code (required module/executed code) after each fork will be huge compared to just loading everything in the parent and forking afterwards