in reply to Having trouble with a Discussion Board
toopen(TEMPFILE,">$tempfile") || die "Can't find this temporary file wha +t is wrong +. \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.open(TEMPFILE,">$tempfile") || die "Can't find this temporary file: $! +\n";
|
|---|