Does {local $SIG{PIPE} = sub {}; close($pipe)} work? My guess is that perl is checking the status of the pipe and emulating SIGPIPE when you close it.
In reply to Re^3: question on getting SIGPIPE in close
by jcb
in thread question on getting SIGPIPE in close
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |