in reply to printing to a scalar -- STDIN, STDOUT, STDERR
You might find How can I capture STDERR from an external command? helpful.