web commit by http://ethan.betacantrips.com/: another weird thing

master
joey 2007-07-28 20:56:09 +00:00
parent 3bbf5eb28a
commit 40cde964d0
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
open (IN, "$config{wikistatedir}/aggregate" ||
die "$config{wikistatedir}/aggregate: $!");
It looks like the intent was "open this file, and die if you can't",
but I'm pretty sure it actually means "open this file and ignore errors
silently". Shouldn't this be `open(IN, $file) || die "$file: $!";`
(i.e. with the parens before the call to `die`)? --Ethan