in reply to Having trouble with a Discussion Board

Change:
open(TEMPFILE,">$tempfile") || die "Can't find this temporary file wha +t is wrong +. \n";
to
open(TEMPFILE,">$tempfile") || die "Can't find this temporary file: $! +\n";
The $! variable will contain an error message explaining why the open failed. You should almost always include it in error messages about failures of system routines.