testdata
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 1
Config::Abstract 0.13
Config::Abstract is a Perl extension for abstracting configuration files. more>>
Config::Abstract is a Perl extension for abstracting configuration files.
SYNOPSIS
use Config::Abstract;
my $ini = new Config::Abstract(testdata.pl);
Config::Abstract is the base class for a number of other classes created to facilitate use and handling of a variety of different configuration file formats. It uses the Data::Dumper file format to serialise it self and can be initialise from a file of that format
EXAMPLES
We assume the content of the file testdata.pl to be:
$settings = {
book => {
chapter1 => {
title => The First Chapter, ever,
file => book/chapter1.txt
},
title => A book of chapters,
chapter2 => {
title => The Next Chapter, after the First Chapter, ever,
file => book/chapter2.txt
},
author => Me, Myself and Irene
}
};
use Config::Abstract;
my $settingsfile = testdata.pl;
my $abstract = new Config::Abstract($settingsfile);
my %book = $abstract->get_entry(book);
my %chap1 = $abstract->get_entry_setting(book,chapter1);
my $chap1title = $chapter1{title};
# Want to see the file?
# If you can live without comments and blank lines ;),
# try this:
print("My abstract file looks like this:n$abstractnCool, huh?n");
# We can also create an ini file from it
# A bit crude, but it does the job
bless($abstract,Config::Abstract::Ini);
print($abstract);
<<lessSYNOPSIS
use Config::Abstract;
my $ini = new Config::Abstract(testdata.pl);
Config::Abstract is the base class for a number of other classes created to facilitate use and handling of a variety of different configuration file formats. It uses the Data::Dumper file format to serialise it self and can be initialise from a file of that format
EXAMPLES
We assume the content of the file testdata.pl to be:
$settings = {
book => {
chapter1 => {
title => The First Chapter, ever,
file => book/chapter1.txt
},
title => A book of chapters,
chapter2 => {
title => The Next Chapter, after the First Chapter, ever,
file => book/chapter2.txt
},
author => Me, Myself and Irene
}
};
use Config::Abstract;
my $settingsfile = testdata.pl;
my $abstract = new Config::Abstract($settingsfile);
my %book = $abstract->get_entry(book);
my %chap1 = $abstract->get_entry_setting(book,chapter1);
my $chap1title = $chapter1{title};
# Want to see the file?
# If you can live without comments and blank lines ;),
# try this:
print("My abstract file looks like this:n$abstractnCool, huh?n");
# We can also create an ini file from it
# A bit crude, but it does the job
bless($abstract,Config::Abstract::Ini);
print($abstract);
Download (0.008MB)
Added: 2007-04-12 License: Perl Artistic License Price:
925 downloads
Secleted [ 0 ] software to compare
- Page: 1 of 1
- 1
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above testdata search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed