summaryrefslogtreecommitdiff
path: root/lib/Config
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-07-12 09:09:03 +0300
committerSergey Poznyakoff <gray@gnu.org>2018-07-12 09:09:03 +0300
commitedfeb103b85e10aa9e6825d3b92c5888fb4dea94 (patch)
treea464544110c01c65098a282c459e54afdb41c455 /lib/Config
parent77946164120de0a135035621762779bfa50e82d0 (diff)
downloadconfig-haproxy-edfeb103b85e10aa9e6825d3b92c5888fb4dea94.tar.gz
config-haproxy-edfeb103b85e10aa9e6825d3b92c5888fb4dea94.tar.bz2
Drop dependency on autodiev1.01
* Changes: Update * lib/Config/HAProxy.pm: Improve description of the write method. * t/format.t: Pass string ref to write. Don't use autodie. * t/select.t: Don't use autodie.
Diffstat (limited to 'lib/Config')
-rw-r--r--lib/Config/HAProxy.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Config/HAProxy.pm b/lib/Config/HAProxy.pm
index 74eafa4..9a8d666 100644
--- a/lib/Config/HAProxy.pm
+++ b/lib/Config/HAProxy.pm
@@ -371,7 +371,8 @@ Saves the parse tree in the configuration file.
$cfg->write($file, %hash);
-Writes configuration to the named file or file handle. If B<$file> is the
+Writes configuration to the named file or file handle. First argument
+can be a file name, file handle or a string reference. If it is the
only argument, the original indentation is preserved. Otherwise, if
B<%hash> controls the indentation of the output. It must contain at least
the B<indent> key, which specifies the amount of indentation per nesting

Return to:

Send suggestions and report system problems to the System administrator.