authorSergey Poznyakoff <>2019-05-26 06:20:32 (GMT)
committer Sergey Poznyakoff <>2019-05-26 06:33:43 (GMT)
commitf12defd06dfab84dd5a6a1d6f9839d6bb3af2c62 (patch) (side-by-side diff)
parent585a5a925342c357d46fbad273bfafc03bc33dcd (diff)
Config::HAProxy version 1.03v1.03
Diffstat (more/less context) (ignore whitespace changes)
3 files changed, 16 insertions, 9 deletions
diff --git a/Changes b/Changes
index 2fe0426..5bb1939 100644
--- a/Changes
+++ b/Changes
@@ -2,2 +2,8 @@ Revision history for Perl extension Config::HAProxy.
+1.03 Sun May 26 09:12:10 2019
+ - implement configuration syntax check
+1.02 Mon Jul 16 07:38:31 2018
+ - remove the leftover use of autodie
1.01 Thu Jul 12 09:04:28 2018
diff --git a/lib/Config/ b/lib/Config/
index ff4fa8a..794a80f 100644
--- a/lib/Config/
+++ b/lib/Config/
@@ -18,3 +18,3 @@ use Carp;
-our $VERSION = '1.01';
+our $VERSION = '1.03';
@@ -431,6 +431,7 @@ Returns the last node in the tree.
- $cfg->lint(%ARGS);
+ $cfg->lint(%hash);
-Configures syntax checking program to be run before saving. Takes a
-hash as argument. Allowed keys are:
+Configures configuration syntax check. The check will be run by the B<save>
+method prior to writing to the configuration file. Takes a hash as argument.
+Allowed keys are:
@@ -444,3 +445,4 @@ If I<BOOL> is 0, disables syntax check. Default is 1.
-Configures the command to use for syntax check. The command will be run as
+Defines the shell command to use for syntax check. The command will be run
@@ -454,3 +456,3 @@ Default command is B<haproxy -c -f>.
-Sets the search path for the check program. I<PATH> is a colon-delimited
+Sets the search path for the syntax checker. I<PATH> is a colon-delimited
list of directories. Unless the first word of B<command> is an absolute
@@ -469,4 +471,4 @@ Saves the parse tree in the configuration file. Syntax check will be run
prior to saving (unless previously disabled). If syntax errors are discovered,
-the method will B<croak> with the appropriate diagnostics, beginning with
-words C<Syntax check failed:>.
+the method will B<croak> with a diagnostic message starting with words
+C<Syntax check failed:>.
diff --git a/t/Test/ b/t/Test/
index b5b8a19..ca7d8ce 100644
--- a/t/Test/
+++ b/t/Test/
@@ -6,3 +6,2 @@ use File::Basename;
use File::Temp;
-use autodie;

Return to:

Send suggestions and report system problems to the System administrator.