perl-Config-Grammar-1.100.0-3-rosa.lts2012.0.noarch.rpm


Advertisement

Description

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

Distribution: ROSA Enterprise Desktop
Repository: ROSA Contrib Updates x86_64
Package name: perl-Config-Grammar
Package version: 1.100.0
Package release: 3-rosa.lts2012.0
Package architecture: noarch
Package type: rpm
Installed size: 60.44 KB
Download size: 23.93 KB
Official Mirror: mirror.rosalab.ru
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 efficiently. 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".

Alternatives

Provides

  • perl(Config::Grammar) == 1.100.0
  • perl(Config::Grammar::Document)
  • perl(Config::Grammar::Dynamic)
  • perl-Config-Grammar == 1.100.0-3:2012.0

    Install Howto

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

    Files

    • /usr/lib/perl5/vendor_perl/5.12.3/Config/Grammar.pm
    • /usr/lib/perl5/vendor_perl/5.12.3/Config/Grammar/Document.pm
    • /usr/lib/perl5/vendor_perl/5.12.3/Config/Grammar/Dynamic.pm
    • /usr/share/doc/perl-Config-Grammar/Changes
    • /usr/share/doc/perl-Config-Grammar/README
    • /usr/share/man/man3/Config::Grammar.3pm.xz
    • /usr/share/man/man3/Config::Grammar::Dynamic.3pm.xz

    Changelog

    2011-04-18 - Funda Wang <fwang@mandriva.org> 1.100.0-3mdv2011.0 + Revision: 654898 - rebuild for updated spec-helper

    2009-09-16 - Guillaume Rousse <guillomovitch@mandriva.org> 1.100.0-2mdv2011.0 + Revision: 443528 - backportability fix

    2009-08-04 - J?r?me Quelin <jquelin@mandriva.org> 1.100.0-1mdv2010.0 + Revision: 409026 - rebuild using %%perl_convert_version - rebuild

    Advertisement
    Advertisement