Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Push it real good, or don't

by pimperator (Acolyte)
on Jun 09, 2014 at 20:38 UTC ( [id://1089325] : note . print w/replies, xml ) Need Help??


in reply to Re^3: Push it real good, or don't
in thread Push it real good, or don't

Yes this is a test for a much larger script

Replies are listed 'Best First'.
Re^5: Push it real good, or don't
by boftx (Deacon) on Jun 09, 2014 at 20:51 UTC

    The best advice I can give you (other than giving you working code) is to do a search for socketpair. You will find lots of examples of how to get data back from a child process.

    Update: The latest version of Parallel::ForkManager has a mechanism that is based on files. I would use that only as a last resort. It appears to be horribly slow and adds many more potential failure points.

    You must always remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.
Re^5: Push it real good, or don't (RTfM?)
by LanX (Saint) on Jun 09, 2014 at 20:53 UTC
    Did you try reading the fine manual of Parallel::ForkManager ?

    Cheers Rolf

    (addicted to the Perl Programming Language)