It's exactly this process of passing data between the processes that threads solves. See my reply to your original query atRe: Thread Advice. If you strip the comments, it is barely any more complicated than you code here, and it provides for reliable bi-directional communication by using Thread::Queue.
In reply to Re: Parallel::ForkManager question
by BrowserUk
in thread Parallel::ForkManager question
by crackotter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |