in reply to Re: catching STDERR of a system(@callout)
in thread catching STDERR of a system(@callout)

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.