in reply to Re^4: IPC::Open3 woes

If you want the output earlier, don't read it into memory all at once.

@outlines = <HIS_OUT>;

will read the output all at once.

You can try using a while loop:

while (defined (my $line = <HIS_OUT>)) { chomp; print "Read: '$line'\n"; };

Replies are listed 'Best First'.
Re^6: IPC::Open3 woes
by ajayguptab (Initiate) on May 25, 2010 at 09:43 UTC

    Thanks Corion, Is there a way to make it interactive to get the contents of HIS_OUT and HIS_ERR after each execution of the while loop?

      What do you mean by "make it interactive" ?

        I want to use the conents of both those file handles after each loop, dump the contents into an output file and then make them empty and continue with the next iteration.