perl-Config-Wrest-1.036-alt1.noarch.rpm


Advertisement

Description

perl-Config-Wrest - Read and write Configuration data With References, Environment variables, Sections, and Templating

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Config-Wrest
Package version 1.036
Package release alt1
Package architecture noarch
Package type rpm
Installed size 62.83 KB
Download size 62.83 KB
Official Mirror ftp.altlinux.org
This module allows you to read configuration data written in a human-readable and easily-editable text format
and access it as a perl data structure. It also allows you to write configuration data from perl back to this format.
The data format allows key/value pairs, comments, escaping of unprintable or problematic characters,
sensible whitespace handling, support for Unicode data,
nested sections, or blocks, of configuration data (analogous to hash- and array-references), and the optional
preprocessing of each line through a templating engine. If you choose to use a templating engine then, depending
on the engine you're using, you can interpolate other values into the data, interpolate environment variables,
and perform other logic or transformations. The data format also allows you to use directives to alter the behaviour
of the parser from inside the configuration file, to set variables, to include other files, and for other
actions.
Here's a brief example of some configuration data. Note the use of quotes, escape sequences, and nested blocks:
_Language =  perl
_<imageinfo>
__width = 100     # This is an end-of-line comment
__height  100
__alt_text " square red image, copyright %A9 2001 "
__<Nestedblock>
___colour red
__</>
__[Suffixes]
___.jpg
___.jpeg
__[/]
_</imageinfo>
_@include path/to/file.cfg
_[Days]
__Sunday
__Can%{2019}t
__'Full Moon'
__<weekend>
___length 48h
__</>
__# and so on... This is a full-line comment
_[/]
This parses to the perl data structure:
_{
__Language => 'perl',
__imageinfo => {
___width => '100',
___height => '100',
___alt_text => " square red image, copyright \xA9 2001 ",
___Nestedblock => {
____colour => 'red'
___},
___Suffixes => [
____'.jpg',
____'.jpeg'
___],
__},
__Days => [
___'Sunday',
___"Can\x{2019}t",_# note the Unicode character in this string
___'Full Moon',
___{
____'length' => '48h'
___}
__],
__# ...and of course, whatever data was read from the included file "path/to/file.cfg"
_}
Of course, your configuration data may not need to use any of those special features, and might simply be key/value pairs:
_Basedir   /usr/local/myprogram
_Debug     0
_Database  IFL1
This parses to the perl data structure:
_{
__Basedir => '/usr/local/myprogram',
__Debug => '0',
__Database => 'IFL1',
_}
These data structures can be serialized back to a textual form using this module.
For details of the data format see the DATA FORMAT entry elsewhere in this document and the DIRECTIVES entry elsewhere in this document. Also see the CONSTRUCTOR OPTIONS entry elsewhere in this document for options
which affect the parsing of the data. All file input and output goes through the File::Slurp::WithinPolicy manpage.

Alternatives

Package Version Architecture Repository
perl-Config-Wrest - - -

Requires

Name Value
/usr/share/perl5 -
perl(Any/Template.pm) -
perl(File/Slurp/WithinPolicy.pm) -
perl(Storable.pm) -
perl(constant.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Config/Wrest.pm) = 1.036
perl(Data/Serializer/Config/Wrest.pm) = 1.002
perl-Config-Wrest = 1.036-alt1

Download

Type URL
Binary Package perl-Config-Wrest-1.036-alt1.noarch.rpm
Source Package perl-Config-Wrest-1.036-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Config-Wrest rpm package:
    # sudo apt-get install perl-Config-Wrest

Files

Path
/usr/share/doc/perl-Config-Wrest-1.036/COPYING
/usr/share/doc/perl-Config-Wrest-1.036/Changes
/usr/share/doc/perl-Config-Wrest-1.036/README
/usr/share/perl5/Config/Wrest.pm
/usr/share/perl5/Data/
/usr/share/perl5/Data/Serializer/
/usr/share/perl5/Data/Serializer/Config/Wrest.pm

See Also

Package Description
perl-Config-XMLPerl-0.01-alt1.noarch.rpm Configuration files based in XML, where Perl data codes as XML values are enabled
perl-Config-XPath-0.16-alt1.noarch.rpm retrieve configuration data from XML files by using XPath
perl-Config-YAARG-0.023-alt1.noarch.rpm Yet-another argument processor, designed to provide a standard method for parsing constructor argum
perl-Config-YAML-Modern-0.36-alt1.noarch.rpm Modern YAML-based config loader from file or directory
perl-Config-YAML-Tiny-1.42.0-alt1.noarch.rpm simple reading and writing of YAML-formatted
perl-Config-Yacp-2.00-alt1.noarch.rpm perl module Config-Yacp
perl-Config-Yak-0.23-alt1.noarch.rpm a tree-based versatile config handler
perl-Config-ZOMG-1.000000-alt1.noarch.rpm Yet Another Catalyst::Plugin::ConfigLoader-style layer over Config::Any
perl-Config-apiLayers-0.11-alt1.noarch.rpm Auto-prototyping object properties in multiple configuration layers
perl-Confluence-Client-XMLRPC-2.5-alt1.noarch.rpm Client for the Atlassian Confluence wiki, based on RPC::XML
perl-Confman-0.04-alt1.noarch.rpm Perl library to interface with Confman
perl-Connector-1.26-alt1.noarch.rpm a generic connection to a hierarchical-structured data set
perl-Const-Common-0.01-alt1.noarch.rpm Yet another constant definition module
perl-Const-Common-Generator-0.01-alt1.noarch.rpm Auto generate constant package of Const::Common
perl-Const-Dual-0.02-alt1.noarch.rpm numeric constants that know their names
Advertisement
Advertisement