in reply to how do i redirect STDOUT, STDIN, or STDERR to a FILE?
open( STDERR, ">", $stderrFileName ); [download]
Originally posted as a Categorized Answer.