your_script [options and args] 2> errlog #### open( STDERR, ">>$debug_output" ) or die "Can't write errlog: $!\n";