in reply to Re: Reading from Many Child Processes using Pipes
in thread Reading from Many Child Processes using Pipes

Spot on AnonymousMonk. Thank you for giving me a much needed pointer.

I'm curious why you used a select in the child code where I used sleep. Is there an advantage of using select over sleep? Or was it just for simulating random sleep for this example?

  • Comment on Re^2: Reading from Many Child Processes using Pipes

Replies are listed 'Best First'.
Re^3: Reading from Many Child Processes using Pipes
by Anonymous Monk on Oct 31, 2015 at 19:22 UTC

    From perldoc -f sleep :

    "sleep Causes the script to sleep for (integer) EXPR seconds"

    I wanted fractional second sleeps, which select provides, without having to use Time::HiRes