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


in reply to Re^2: unexpected program abort on write on closed handle
in thread unexpected program abort on write on closed handle

If you use 4 arg select (or IO::Select) before you write to your socket then you can avoid getting SIGPIPE for a relatively unsurprising condition like "the reading end is dead".
  • Comment on Re^3: unexpected program abort on write on closed handle