Filehandle dup'ing of STDOUT, etc. is covered in
"Programming Perl (2nd Ed.)" by Larry Wall, O'Reilly 1996 p. 193 in the section documenting
the open() function.
Originally posted as a Categorized Answer.
Comment on Re: how do i redirect STDOUT, STDIN, or STDERR to a FILE?