That sounds like perl is remembering an error from an earlier failed write and reporting it when the pipe is closed or something else entirely is going on...
I finally searched perldiag for "unable to close filehandle" and that message indicates that the "implicit close done by an open got an error indication" so now I must ask: what is sub P?
In reply to Re^5: question on getting SIGPIPE in close
by jcb
in thread question on getting SIGPIPE in close
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |