CGI::Ex::Conf
Details
| Size: | 213K |
| Last Update: | 2008-05-13 22:14:59 |
| Version: | 2.06 |
| OS Support: | Linux |
| License/Program Type: | Perl Artistic License |
| Publisher: | Paul Seamons |
| Price: | $0.00 |
Description:
CGI::Ex::Conf 2.06 is libraries software developed by Paul Seamons.
CGI::Ex::Conf is a Perl module with Conf Reader/Writer for many different data format types.
SYNOPSIS
use CGI::Ex::Conf qw(conf_read conf_write);
my $hash = conf_read("/tmp/foo.yaml");
conf_write("/tmp/foo.yaml", {key1 => $val1, key2 => $val2});
OOP interface
my $cob = CGI::Ex::Conf->new;
my $full_path_to_file = "/tmp/foo.val"; supports ini, sto, val, pl, xml
my $hash = $cob->read($file);
local $cob->{default_ext} = 'conf'; default anyway
my @paths = qw(/tmp, /home/pauls);
local $cob->{paths} = @paths;
my $hash = $cob->read('My::NameSpace');
will look in /tmp/My/NameSpace.conf and /home/pauls/My/NameSpace.conf
my $hash = $cob->read('My::NameSpace', {paths => ['/tmp']});
will look in /tmp/My/NameSpace.conf
local $cob->{directive} = 'MERGE';
my $hash = $cob->read('FooSpace');
OR
my $hash = $cob->read('FooSpace', {directive => 'MERGE'});
will return merged hashes from /tmp/FooSpace.conf and /home/pauls/FooSpace.conf
immutable keys are preserved from originating files
local $cob->{directive} = 'FIRST';
my $hash = $cob->read('FooSpace');
will return values from first found file in the path.
local $cob->{directive} = 'LAST'; default behavior
my $hash = $cob->read('FooSpace');
will return values from last found file in the path.
manipulate $hash
$cob->write('FooSpace'); will write it out the changes
There are half a million Conf readers out there. Why not add one more. Actually, this module provides a wrapper around the many file formats and the config modules that can handle them. It does not introduce any formats of its own.
This module also provides a preload ability which is useful in conjunction with mod_perl.
Requirements:
Perl
CGI::Ex::Conf 2.06 supports different languages (including english). It works with Linux.
Downloading CGI::Ex::Conf 2.06 will take several seconds if you use fast ADSL connection.
0 comments
Add to
CGI::Ex::Conf Version History
Related Software
|
|
From category: Libraries |
| DBI::FAQ 1.52 is libraries software developed by Alligator Descartes. DBI::FAQ is a Perl module for the Frequently Asked Questions of the Perl5 Database Interface. What is DBI, DBperl, Orape... |
|
|
From category: Libraries |
| libgfileio is a C++ library that wraps around the standard unbuffered Unix file I/O functions write() and read().... |
|
|
From category: Libraries |
| AppFuse 1.9.4 is libraries software developed by Matt Raible. AppFuse project is an application for \"kickstarting\" webapp development. Download, extract and execute ant new to instantly be up and... |
|
|
From category: Libraries |
| XML::Mini is a Perl implementation of the XML::Mini XML create/parse interface.... |
|
|
From category: Libraries |
| Data::ICal::Entry::Alarm::Audio 0.07 is libraries software developed by Jesse Vincent. Data::ICal::Entry::Alarm::Audio represents an audio alarm in an iCalendar file. SYNOPSIS my... |
|
|
From category: Libraries |
| f77xml 1.0.0beta is libraries software developed by Stefano Borini. f77xml/f90xml is a library that provides DOM parsing of XML files to Fortran 77/90. It acts as a wrapper between Fortran and the... |
|
|
From category: Libraries |
| Pigment Python package contains modules that allow you to use Pigment in Python programs.... |
|
|
From category: Code-Generators |
| Acceleo 1.1 is code generators software developed by Obeo. Acceleo is a code generator designed to efficiently implement the MDA approach and to improve software development productivity. It... |
|
|
From category: Libraries |
| Free Finite Element Package 0.8.3 is libraries software developed by Joerg Frochte. Free Finite Element Package is a modular collection of C libraries which contain numerical methods required when... |
|
|
From category: Libraries |
| BSPonMPI 0.2 is libraries software developed by Wijnand J. Suijlen. BSPonMPI is a platform independent software library for developing parallel programs. BSPonMPI implements the BSPlib standard (wi... |
|
|
From category: Interpreters |
| FramerD is a portable distributed object-oriented database designed to support the maintenance and sharing of knowledge bases.... |
|
|
From category: Libraries |
| HTTP client request class is a PHP class that implements requests to Web resources using the HTTP protocol.... |
|
|
From category: Libraries |
| GtkHTML is a HTML rendering/editing library.... |
|
|
From category: Libraries |
| C::Sharp::Tokener 0.01 is libraries software developed by Simon Cozens. C::Sharp::Tokener is a Tokeniser for C. SYNOPSIS use C::Sharp::Tokener; do { ($token, $... |
|
|
From category: Code-Generators |
| Cibyl 7 is code generators software developed by Simon Kagstrom. Cibyl is a programming environment that allows compiled C programs to execute on J2ME-capable phones. Cibyl uses GCC to compile the... |
Leave a comment