in reply to Undo a STDOUT redirect

You could also do this:
open LOGFILE, ">", $LogFile or die; select(LOGFILE); $|=1; print "Something"; select(STDOUT);
# and you can close LOGFILE if you're done with it.