Main > Programming > Libraries >

CGI::Ex::Conf 2.06

CGI::Ex::Conf 2.06

Sponsored Links

CGI::Ex::Conf 2.06 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.21 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1113
Date added: 2006-10-07
Publisher: Paul Seamons

CGI::Ex::Conf 2.06 description

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.

CGI::Ex::Conf 2.06 Screenshot

Advertisements

CGI::Ex::Conf 2.06 Keywords

Bookmark CGI::Ex::Conf 2.06

Hyperlink code:
Link for forum:

CGI::Ex::Conf 2.06 Copyright

WareSeeker periodically updates pricing and software information of CGI::Ex::Conf 2.06 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of CGI::Ex::Conf 2.06 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
CGI::Expand is a Perl module that can convert flat hash to nested data using TT2s dot convention. Free Download
CGI::Ex::App is a anti-framework application framework. Free Download
CGI::Explorer is a class to manage displaying a hash tree of data, for use in CGI scripts. Free Download
CGI::Enurl.pm is a Perl module for URL-encoding strings and hashes. Free Download
Gimp::Config is a Perl module with config options found during configure time. Free Download
CGI::Out is a Perl module to buffer output when building CGI programs. Free Download
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. Free Download
CGI_Lite is a Perl module to process and decode WWW forms and cookies. Free Download