Or perhaps instead work with IPC::Run3 and let it handle all that nastiness internally:
use IPC::Run3; run3 \@cmd, \$in, \$out, \$err;
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
In reply to Re^2: catching STDERR of a system(@callout)
by xdg
in thread catching STDERR of a system(@callout)
by agarsha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |