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


in reply to Re: Premature close of the pipe
in thread Premature close of the pipe

Hi McA,
thanks for your reply.

Well, I do not wish to necessarily grab the output from the pipe, the statement while(<$fh>) { $output .= $_; } was a trick to delay the premature death of the pipe.
I am using open3 because the remote server prints into the stderr a welcome message, which it is automatically forwarded into the client stdout using the common pipe mechanism, while I want to get rid of it.

Kind regards,
Superfox