in reply to redirecting output to STDERR and STDOUT
$logfile = \*STDERR; print $logfile "This will go to STDERR now...";