http://qs321.pair.com?node_id=11109195

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

Hi

is there a way to capture the output of an external program that writes to stderr with qx?

I thought I'd simply redirect stderr, but it's not so simple, eg:

print qx(ffmpg -f s16le -i out.raw 2>&1);
does not capture the output of the ffmpeg-command.

I am aware that there are other ways to capture stderr, this is a specific qx question.

Many thanks!