http://qs1969.pair.com?node_id=11126853

jdporter has asked for the wisdom of the Perl Monks concerning the following question:

In my perl program I open a subprocess for writing via a pipe. It appears that this child process can decide to exit at times I don't expect. Is it possible to detect that the filehandle to the pipe is no longer usable? As it is, I now get SIGPIPE occasionally, but it seems to happen later, after I've possibly already written (tried to write) additional lines to the pipe. I want something synchronous.

I've seen Scalar::Util's openhandle function. Does it work on pipe handles, opened for writing?

TIA!

I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.