perl-Config-Simple-Conf-2.003-alt1.noarch.rpm


Advertisement

Description

perl-Config-Simple-Conf - A fast and lightweight configuration file handler

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Config-Simple-Conf
Package version 2.003
Package release alt1
Package architecture noarch
Package type rpm
Installed size 28.71 KB
Download size 28.71 KB
Official Mirror ftp.altlinux.org
The idea behind Config::Simple::Conf came from various INI style parsers I've used in the past. In general these have worked well with the exception of lack of complex configuration handling.
Config::Simple for example fails to account for common cases which are extremely useful in any configuration file. These include useful handling of duplicate keys (currently Config::Simple blows them away without any notice), and second, internal macros.
In many of my usage cases I want something like your standard .INI file format, with the above mentioned exceptions.
_# Define a configuration section
_[core section]
_# Define an entry in core section
_path = /root/to/my/stuff
_# Define a new configuration file section
_[section name]
_# Define an entry list and use the value from another section to complete
_# the configuration
_path = [core section:path]/abc
_path = [core section:path]/xyz
Such a configuration would allow me to do two things, establish a core path argument, which is then used in other sections, and have a section with multiple duplicate entires as a list.
An example of the code here would look something like:
_#!/usr/bin/perl
_use strict;
_use Config::Simple::Conf;
_my $conf = Config::Simple::Conf->new('/path/to/my.conf');
_print "My root is: " . $conf->value('core section', 'path') . "\n";
_print "My section paths are:\n";
_for($conf->value('section name', 'path')){
__print "\t$_\n";
_}
With the resulting output looking something like:
_My root is: /root/to/my/stuff
_My section paths are:
__/root/to/my/stuff/abc
__/root/to/my/stuff/xyz

Alternatives

Package Version Architecture Repository
perl-Config-Simple-Conf - - -

Requires

Name Value
/usr/share/perl5 -
perl(base.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Config/Simple/Conf.pm) = 2.003
perl-Config-Simple-Conf = 2.003-alt1

Download

Type URL
Binary Package perl-Config-Simple-Conf-2.003-alt1.noarch.rpm
Source Package perl-Config-Simple-Conf-2.003-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-Simple-Conf rpm package:
    # sudo apt-get install perl-Config-Simple-Conf

Files

Path
/usr/share/doc/perl-Config-Simple-Conf-2.003/CHANGELOG
/usr/share/doc/perl-Config-Simple-Conf-2.003/LICENSE
/usr/share/doc/perl-Config-Simple-Conf-2.003/README
/usr/share/doc/perl-Config-Simple-Conf-2.003/example/exists.conf
/usr/share/doc/perl-Config-Simple-Conf-2.003/example/test.conf
/usr/share/doc/perl-Config-Simple-Conf-2.003/example/test.pl
/usr/share/doc/perl-Config-Simple-Conf-2.003/example/test_die.conf
/usr/share/doc/perl-Config-Simple-Conf-2.003/example/test_inc.conf
/usr/share/doc/perl-Config-Simple-Conf-2.003/example/test_inc_fail.conf
/usr/share/perl5/Config/
/usr/share/perl5/Config/Simple/Conf.pm

See Also

Package Description
perl-Config-Simple-Extended-0.16-alt1.noarch.rpm Extend Config::Simple w/ Configuration Inheritance, chosen by URL
perl-Config-Simple-Inherit-0.04-alt1.noarch.rpm Inherit values from, overwrite a base configuration
perl-Config-Singleton-0.005-alt1.noarch.rpm one place for your app's configuration
perl-Config-Source-0.08-alt1.noarch.rpm manage a configuration from multiple sources
perl-Config-Station-0.002001-alt1.noarch.rpm Load configs from files and the environment
perl-Config-Strict-0.07-alt1.noarch.rpm Add strict name- and type-checking to configuration data
perl-Config-TT2-0.53-alt1.noarch.rpm Reading configuration files with the Template-Toolkit parser
perl-Config-Terse-0.01-alt1.noarch.rpm delimited key and value:
perl-Config-Tiny-Ordered-1.02-alt1.noarch.rpm Read/Write ordered .ini style files with as little code as possible
perl-Config-Tiny-Singleton-0.02-alt1.noarch.rpm singleton-pattern implementation for Config::Tiny
perl-Config-TinyDNS-1-alt1.noarch.rpm Manipulate tinydns' data file
perl-Config-TinyDNS-scripts-1-alt1.noarch.rpm Config-TinyDNS scripts
perl-Config-Trivial-0.81-alt1.noarch.rpm Very simple tool for reading and writing very simple configuration files
perl-Config-Trivial-Storable-0.32-alt1.noarch.rpm Very simple tool for reading and writing very simple Storable configuration files
perl-Config-Universal-0.5-alt1.noarch.rpm perl module Config-Universal
Advertisement
Advertisement