Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi.., Currently i'm using IPC::Run module to redirect the STDIN and STDOUT of the particular perl script. In this i'm getting some issues..here is some sample code..
my $h = start \@cat, \$in_q, '>>', "out.txt", '2>>', "err.txt", debug +=> 0 ; $in_q = "help\n" ; pump $h; $in_q = "lscomp\n"; pump $h; finish $h or die "cat returned $?" ;
Issue: After "pump" the all the inputs and "finish" it only...i will get the result for all the inputs....But i need immediate result (response) for every "pump" operation .... In my case for each input, the output have more than 10 lines of response... So please ..can you help me for my problem.....!

Edited by planetscape - added code tags