chiark
/
gitweb
/
~matthewv
/
bible-kjv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
259e8ab
)
Check error() return
author
Matthew Vernon
<matthew@debian.org>
Mon, 19 Jul 2021 11:35:09 +0000
(12:35 +0100)
committer
Matthew Vernon
<matthew@debian.org>
Mon, 19 Jul 2021 11:35:09 +0000
(12:35 +0100)
It's not very useful calling BIBLE->() without checking the output.
makeconc.pl
patch
|
blob
|
history
diff --git
a/makeconc.pl
b/makeconc.pl
index c3e5bb810c3c4cf7145ff40f18a39fa88688b245..cf3edebca39107112170f10f710d39902c504b07 100755
(executable)
--- a/
makeconc.pl
+++ b/
makeconc.pl
@@
-55,7
+55,7
@@
while (<BIBLE>) {
$lines{$word} .= " " . $.;
}
}
-BIBLE->error();
+
die $! if
BIBLE->error();
# Create raw concordance, listing the lines where each word occurs.