in reply to How to redirect STDOUT, STDERR, etc....
http://perldoc.perl.org/functions/open.html
Just search for the section on redirecting STDOUT using various methods.