From a6b1b7d7a7283f2d74afc1752fc2b628603b3d22 Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Mon, 19 Jul 2021 12:35:09 +0100 Subject: [PATCH] Check error() return It's not very useful calling BIBLE->() without checking the output. --- makeconc.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makeconc.pl b/makeconc.pl index c3e5bb8..cf3edeb 100755 --- a/makeconc.pl +++ b/makeconc.pl @@ -55,7 +55,7 @@ while () { $lines{$word} .= " " . $.; } } -BIBLE->error(); +die $! if BIBLE->error(); # Create raw concordance, listing the lines where each word occurs. -- 2.30.2