in reply to Re^4: Print STDOUT and STDERR to file and to console
in thread Print STDOUT and STDERR to file and to console

open (CMD, " ls 2>&1 |");

or IPC::Run3

- ikegami