Help for this page
if ($query{submit} eq "PDF") { open STDOUT, ">tempfile.html" or graceful_exit("can't open fil +e"); }
if ($query{submit} eq "PDF") { open OUTPUT, ">tempfile.html" or graceful_exit("can't open fil +e"); } else { open OUTPUT, '>STDOUT'; # I know this is wrong }