perl-Config-Grammar - A grammar-based, user-friendly config parser

Property Value
Distribution OpenMandriva Lx 3.0
Repository OpenMandriva Contrib Release i586
Package name perl-Config-Grammar
Package version 1.100.0
Package release 6-omv2015.0
Package architecture noarch
Package type rpm
Installed size 60.59 KB
Download size 24.17 KB
Official Mirror
Config::Grammar is a module to parse configuration files. 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
Grammar Definition
The grammar is a multiple-level hash of hashes, which follows the
structure of the configuration. Each section or variable is represented
by a hash with the same structure. Each hash contains special keys
starting with an underscore such as '_sections', '_vars', '_sub' or
'_re' to denote meta data with information about that section or
variable. Other keys are used to structure the hash according to the
same nesting structure of the configuration itself. The starting hash
given as parameter to 'new' contains the "root section".


Package Version Architecture Repository
perl-Config-Grammar-1.100.0-6-omv2015.0.noarch.rpm 1.100.0 noarch OpenMandriva Contrib Release
perl-Config-Grammar - - -


Name Value
perl(abi) >= 5.20.1


Name Value
perl(Config::Grammar) == 1.100.0
perl(Config::Grammar::Document) -
perl(Config::Grammar::Dynamic) -
perl-Config-Grammar == 1.100.0-6:2015.0


Type URL
Binary Package perl-Config-Grammar-1.100.0-6-omv2015.0.noarch.rpm
Source Package perl-Config-Grammar-1.100.0-6.src.rpm

Install Howto

  1. Enable OpenMandriva Contrib Release repository on Install and Remove Software
  2. Update packages list:
    # urpmi.update -a
  3. Install perl-Config-Grammar rpm package:
    # urpmi perl-Config-Grammar



See Also

Package Description
perl-Config-INI-0.24.0-3-omv2015.0.noarch.rpm A subclassable .ini-file emitter
perl-Config-INI-Simple-0.02-7-omv2015.0.noarch.rpm Simple reading and writing from an INI file--with preserved comments
perl-Config-Identity-0.1.800-2-omv2015.0.noarch.rpm Load (and optionally decrypt via GnuPG) user/pass identity information
perl-Config-MVP-2.200.8-1-omv2015.0.noarch.rpm Multivalue-property config-loading state machine
perl-Config-MVP-Reader-INI-2.101.462-3-omv2015.0.noarch.rpm Multi-value capable .ini file reader (for plugins)
perl-Config-Model-TkUI-1.339.0-3-omv2015.0.noarch.rpm GUI for conf editors based on Config::Model
perl-Config-Perl-V-0.200.0-3-omv2015.0.noarch.rpm A module that will return you the output of
perl-Config-Properties-1.770.0-3-omv2015.0.noarch.rpm Configuration using Java style properties
perl-Config-Simple-4.590.0-5-omv2015.0.noarch.rpm Config-Simple module for perl
perl-Config-Std-0.901.0-3-omv2015.0.noarch.rpm Load and save configuration files in a standard format
perl-Config-YAML-1.420.0-5-omv2015.0.noarch.rpm Generic Config perl module
perl-ConfigReader-0.5-6-omv2015.0.noarch.rpm Read directives from a configuration file
perl-ConfigReader-Simple-1.280.0-6-omv2015.0.noarch.rpm Read simple configuration file formats
perl-Context-Preserve-0.01-7-omv2015.0.noarch.rpm Run code after a subroutine call preserving the context
perl-Convert-Bencode-1.30.0-5-omv2015.0.noarch.rpm Functions for converting to/from bencoded strings