in reply to Re: ticked off with backticks
in thread ticked off with backticks

Since IPC::Run was not installed on my system, I tried the open method first. The close of GNUPLOT fails and $! is empty. I guess it's failing because I'm trying to close it with some data still buffered but why no error message?

I also put some invalid options in the gnuplot command to be sure that it is returning an error message. But @output is empty. The message is probably still buffered in GNUPLOT. Is there a way to flush it?

Thanks,
Bret

Replies are listed 'Best First'.
Re^3: ticked off with backticks
by revdiablo (Prior) on Aug 19, 2004 at 16:33 UTC
    The message is probably still buffered in GNUPLOT. Is there a way to flush it?

    The call to <GNUPLOT> in list context will slurp everything the filehandle has to read, and close should flush any buffers automatically. With aquarium's code, if the buffers fail to flush, die would be called.