On 18 Dec 2011, at 02:57, Yitzchak Scott-Thoennes wrote: > On Thu, Dec 15, 2011 at 5:38 PM, Toby Wintermute <t...@wintrmute.net> wrote: >> Which is the reason I was using threads - it's easy to do IPC between >> them by sharing access to some data structures. >> Whereas with forking you need to set up pipes, posix shared memory, >> sockets, or some other means. >> >> In the end, I bit the bullet yesterday and did rewrite the code to use >> fork(), and then used Net::STOMP::Client with RabbitMQ to perform the >> IPC. > > If all you need is to return results of a discrete bit of work to the > parent, Parallel::ForkManager makes it trivial.
And the best way to return those results...?