in reply to Re^2: IPC::Run and subprocess interaction
in thread IPC::Run and subprocess interaction
During my Internet browsing I didn't find any example with 2 pumps.
Only one is needed. This would do:
$TOK_IN = $line; pump $TOK while $TOK_OUT !~ /\n\z/; print "out: $TOK_OUT"; $TOK_OUT = '';
This one is in the docs.
$TOK_OUT doesn't seem to be an ordinary variable.
Change chomp to s/\r?\n\z//.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: IPC::Run and subprocess interaction
by xhudik (Initiate) on Jul 18, 2011 at 15:24 UTC | |
by ikegami (Patriarch) on Jul 18, 2011 at 17:27 UTC |