Subject: | Errors file not loaded when Cautions file available |
Date: | Thu, 13 Mar 2014 08:07:26 +0000 |
To: | bug-lingua-en-grammarian [...] rt.cpan.org |
From: | Brian Kelly <brian.pat.kelly [...] googlemail.com> |
Hi,
In version 0.000004 the errors file
[{~,.,/usr/local/share}/grammarian_errors] does not seem to be getting
loaded when the cautions file is available
[{~,.,/usr/local/share}/grammarian_cautions].
This results in lots of 'uninitialised' warnings and no detection of errors
(although cautions are detected) when run against the included demo.pl file:
Use of uninitialized value $ERRORS_REGEX in regexp compilation at
/Users/briankelly/perl5/lib/perl5/Lingua/EN/Grammarian.pm line 494, <> line
1292.
Use of uninitialized value in subtraction (-) at
/Users/briankelly/perl5/lib/perl5/Lingua/EN/Grammarian.pm line 644, <> line
1292.
This impacts perl 5.10 and 5.16.
I've attached a suggested patch.
Best wishes,
Brian
Message body is not shown because sender requested not to inline it.