in reply to Re^4: How to use pty for both STDERR AND STDOUT in IPC::Run, while doing something different with each?
in thread How to use pty for both STDERR AND STDOUT in IPC::Run, while doing something different with each?
run(\@cmd, '>pty>', sub { print "$_[0]"; }, '2>', sub { chomp $_[0]; print "<b>$+_[0]</b>\n"; }) or die("Error executing child. Child returned $&\n");
That's still pretty ugly, but I do find it significantly easier to read.
-sam
|
|---|