in reply to Re^2: Is it possible to use the open( ) function with piped unix commands?
in thread Is it possible to use the open( ) function with piped unix commands?

Yes, but I assumed that perl would close F at end of script, flushing the buffers. Instead, without the close() statement, the program just waits.

After some more testing, it appears that I got confused. Perl does close the pipe when you don't do it yourself, but the output is printed just after the new prompt. (which is why i got confused)

  • Comment on Re^3: Is it possible to use the open( ) function with piped unix commands?

Replies are listed 'Best First'.
Re^4: Is it possible to use the open( ) function with piped unix commands?
by shaolin (Initiate) on Jul 19, 2007 at 19:43 UTC

    Thanks to all for the great feedback.
    It was really appreciated.