Config::Grammar is a module to parse configuration files. The optional second parameter to the parse() method can be used to specify the file encoding to use for opening the file (see documentation for Perl's use open pragma).
The configuration may consist of multiple-level sections with assignments and tabular data. The parsed data will be returned as a hash containing the whole configuration. Config::Grammar uses a grammar that is supplied upon creation of a Config::Grammar object to parse the configuration file and return helpful error messages in case of syntax errors. Using the makepod method you can generate documentation of the configuration file format.
The maketmpl method can generate a template configuration file. If your grammar contains regexp matches, the template will not be all that helpful as Config::Grammar is not smart enough to give you sensible template data based in regular expressions. The related function maketmplmin generates a minimal configuration template without examples, regexps or comments and thus allows an experienced user to fill in the configuration data more efficiently.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
1.13-bp156.2.1 info | GA Release | 2023-07-22 | 15 SP6 |
|
|
1.13-bp155.1.4 info | GA Release | 2023-05-17 | 15 SP5 |
|
|
1.12-bp154.1.19 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
1.12-bp153.1.14 info | GA Release | 2021-03-06 | 15 SP3 |
|
|
1.12-bp152.3.13 info | GA Release | 2020-04-16 | 15 SP2 |
|
|
1.12-bp151.3.1 info | GA Release | 2019-07-17 | 15 SP1 |
|
|
1.12-bp151.2.13 info | GA Release | 2019-05-18 | 15 SP1 |
|
|
1.12-bp150.2.4 info | GA Release | 2018-07-30 | 15 |
|
|