Config::Magic 0.801
Sponsored Links
Config::Magic 0.801 Ranking & Summary
File size:
0.020 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
7639
Date added:
2007-04-12
Publisher:
Rusty Phillips
Publisher URL:
http://search.cpan.org/~r
Config::Magic 0.801 description
SYNOPSIS
Example 1
use Config::Magic;
use Data::Dumper;
$input=q{
Section 1 {
[Section 4]
#Comment style #1
//Comment style #2
;Comment style #3
Monkey:1
Monkey=>2
Monkey:=3
< Section 2 >
Foo = Bar
Baz { Bip:1
Pants==5 }
< /Section >
< Tasty Cheese="3" / >
< Section 5 >
Foo=Bippity,boppity,boo
< /Section >
}
}
#Fastest way:
$config = new Config::Magic();
print Dumper($config->parse($input));
Example 2
use Config::Magic;
use Data::Dumper;
#Arguments with sorting $ordered_hash = 1; $config = new Config::Magic("input.conf",$ordered_hash); print Dumper($config->parse); $result = $config->get_result; print Dumper($result);
OUTPUT (from second example)
Section 1 => {
Section 4 => {
Monkey => [
1,
2,
3
]
},
Section => [
{
2 => {},
Foo => Bar,
Baz => {
Bip => 1,
Pants => 5
}
},
{
attribs=>5,
Foo => [
Bippity,
boppity,
boo
]
}
],
Tasty => {
Cheese => {
}
}
This module uses Parse::RecDescent to generate a parse tree for nearly any kind of configuration file. You can even combine files/configuration types. It understands XML, Apache-style, ini files, csv files, and pretty much everything else I could find. Just give it a file, and get a hash tree out. If it doesnt understand the file, or it isnt well formed (such as if a bracket is missing, etc), then you will get a partial result, or no result at all.
There is a single option that can be passed to this file which indicates that the resulting hash should be ordered rather than random. This is done using Tie::Hash::Indexed. You can also call "setordered" directly to change from using ordered to unordered hashes.
Config::Magic 0.801 Screenshot
Sponsored Links
Config::Magic 0.801 Keywords
Bookmark Config::Magic 0.801
Config::Magic 0.801 Copyright
WareSeeker periodically updates pricing and software information of Config::Magic 0.801 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 Config::Magic 0.801 Edition. 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
Config::Magic 0.801 Related Software
CGI::Application::Magic is a template based framework for CGI applications.
CGI::Builder::Magic Perl module contains CGI::Builder and Template::Magic integration.
Template::Magic is a Perl module for magic merger of runtime values with templates.
Config::General is a perl module opens a config file and parses its contents for you.
Gimp::Config is a Perl module with config options found during configure time.
Config::Model provides a framework to help in validating the semantic content of configuration data.
Config::Model provides a framework to help in validating the semantic content of configuration data.
Parted Magic is a ~30mb LiveCD/USB with its only purpose being partitioning hard drives.
Rage of Magic II is the continuation of Majinwar, an epic fantasy fighting adventure featuring devastating combos.
My Software
You have not saved any software. Click "Save" next to each software to save it to your software basket
Related Information
Sponsored Links
TOP POPULAR DOWNLOAD