summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-08-20 07:25:06 +0300
committerSergey Poznyakoff <gray@gnu.org>2019-08-20 07:25:06 +0300
commit83ef21d6c43221a9e1bd0c84e58e0596e060136b (patch)
tree35478d631975decd90fb2fdeca72097cabe419d8
parent868a1f983d57fcd3d938991275c1fcc229ef80b0 (diff)
downloadconfig-ast-83ef21d6c43221a9e1bd0c84e58e0596e060136b.tar.gz
config-ast-83ef21d6c43221a9e1bd0c84e58e0596e060136b.tar.bz2
Minor fix
* lib/Config/AST.pm: Fix the misguiding documentation
-rw-r--r--lib/Config/AST.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Config/AST.pm b/lib/Config/AST.pm
index c357cdc..98eb80f 100644
--- a/lib/Config/AST.pm
+++ b/lib/Config/AST.pm
@@ -35,13 +35,13 @@ our $VERSION = "1.00";
=head1 NAME
Config::AST - abstract syntax tree for configuration files
=head1 SYNOPSIS
- my $cfg = new Config::AST($filename, %opts);
+ my $cfg = new Config::AST(%opts);
$cfg->parse() or die;
$cfg->commit() or die;
if ($cfg->is_set('core', 'variable')) {
...
}
@@ -141,16 +141,15 @@ names that lead to this node. For example, in this simple configuration file:
filemode = true
the path of the C<filemode> statement is C<qw(core filemode)>.
=head1 CONSTRUCTOR
- $cfg = new Config::AST($filename, %opts);
+ $cfg = new Config::AST(%opts);
-Creates new configuration object for file B<$filename>. Valid
-options are:
+Creates new configuration parser object. Valid options are:
=over 4
=item B<debug> => I<NUM>
Sets debug verbosity level.

Return to:

Send suggestions and report system problems to the System administrator.