in reply to Re: Re: Re: Cat multiple files into one pipein thread Cat multiple files into one pipe
Isn't this what zcat is for?
I don't see anything wrong with your code.
If you kill the receiving program, SIGPIPE is the expected outcome. Is it exiting on its own? What makes you think it is no longer receiving data?
The buffer size for pipes is quite small so Perl would quickly block if the receiving program stopped reading data (and even Perl's internal buffer is not that big).