in reply to printing to a scalar -- STDIN, STDOUT, STDERR

You might find How can I capture STDERR from an external command? helpful.

  • Comment on Re: printing to a scalar -- STDIN, STDOUT, STDERR