in reply to Re: Detect whether a writeable filehandle has closed?
in thread Detect whether a writeable filehandle has closed?

open my $pipe, " | $other_program ";

For testing purposes, the other program could be cat. In my case, it's amqsputc, a sample program included in the IBM MQ product. I'm on linux (OpenSUSE 12).

Replies are listed 'Best First'.
Re^3: Detect whether a writeable filehandle has closed?
by Fletch (Bishop) on Jan 15, 2021 at 16:34 UTC

    Doing some searching it looks like they might support AMQP; you possibly could use something like Net::AMQP::RabbitMQ to connect to the broker directly rather than piping things through an external program. Probably at least give you other different problems to deal with . . .

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.