ginju has asked for the wisdom of the Perl Monks concerning the following question:
The FAQ to the rescue. Try How can I capture STDERR from an external command? There's a nice little recipe waiting for you there.
Throw in a pinch of How do I print to more than one file at once?, another FAQ, and you'll have your answer.
Hint: STDOUT is one of the 'files' you want to print to.
TGI says moo