http://www.perlmonks.org?node_id=537243


in reply to Re: Interprocess pipe doesn't reliably deliver data
in thread Interprocess pipe doesn't reliably deliver data

My latter data was supposed to be picked up by the can_read(). The 'ALSO READ' statement was just a debug statement (only) to prove that the data really was in the pipe. I can't have the <STDIN> because that would block my system when the pipe was empty... thats why I was using can_read().
  • Comment on Re^2: Interprocess pipe doesn't reliably deliver data

Replies are listed 'Best First'.
Re^3: Interprocess pipe doesn't reliably deliver data
by traveler (Parson) on Mar 16, 2006 at 18:55 UTC
    Yes, but you need to run the debug more than once. You also need to completely empty the buffer each time you read. Changing to a sysread in a while loop will fix that, as suggested above.