in reply to How do I redirect outut from system () to a file and also to screen

read

perldoc -f system

and

perldoc -q STDERR