in reply to Fork accessing global variables?

The variables you need to share can be tied with IPC::Shareable, which see.