platform independent (-:
I don't think Windows has a separate stream for Errors thought....
You can also try to use the IPC:Open3 module...
It works fine on UNIX...
use IPC::Open3;
open3($in,$out,$err,"ls -l|");
close $in;
@b=<$out>;
@c=<$err>;
print STDOUT "OUT:", @b, "\n\n\n";
print...