CGI::Ex::Conf 2.06
Sponsored Links
CGI::Ex::Conf 2.06 Ranking & Summary
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.
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
CGI::Ex::Conf 2.06 Keywords
CGI
FooSpace
Conf Reader
Conf 2.06
NameSpace.conf
Perl module
Many Different
For Many
data format
conf
read
hash
module
local
file
CGI::Ex::Conf
Bookmark CGI::Ex::Conf 2.06
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
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
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
Latest Software
Popular Software
Favourite Software