summaryrefslogtreecommitdiff
path: root/keywords.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-03-17 00:17:26 +0000
committerNicholas Clark <nick@ccl4.org>2008-03-17 00:17:26 +0000
commit08858ed21b9a4d448437bdae35df5c42fbe1c8bd (patch)
treed27bb2954cf830c9866eaa74e228a0a358b0d119 /keywords.pl
parent424a4936e3f61f4e8db394f496a116e698cede85 (diff)
downloadperl-08858ed21b9a4d448437bdae35df5c42fbe1c8bd.tar.gz
Drag autodoc.pl and overload.pl into the age of safer_open().
Thanks to the wisdom of london.pm, stuff the filename into the SCALAR slot of the typeglob created in safer_open(), so that ... Add safer_close(), that will die (with the filename) if the close fails. p4raw-id: //depot/perl@33539
Diffstat (limited to 'keywords.pl')
-rwxr-xr-xkeywords.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/keywords.pl b/keywords.pl
index 36035705c4..6ede80524c 100755
--- a/keywords.pl
+++ b/keywords.pl
@@ -36,7 +36,7 @@ while (<DATA>) {
print $kw "\n/* ex: set ro: */\n";
-close $kw or die "Error closing keywords.h-new: $!";
+safer_close($kw);
rename_if_different("keywords.h-new", "keywords.h");