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:
765
Date added:
2007-04-12
Publisher:
Rusty Phillips
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
Config::Magic 0.801 Keywords
Magic 0.801
1
section
2
files
result
hash
Config::Magic
ConfigMagic
Config::Magic 0.801
Libraries
Programming
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 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
Config::YUM is a Perl extension for parsing yum.conf. Free Download
Config:Scoped is a feature rich configuration file parser. Free Download
dtRdr::Config is a Perl module with Factory class for configuration system. Free Download
Xmms::Config is a Perl Interface to xmms_cfg API. Free Download
Config::Std is a Perl module load and save configuration files in a standard format. Free Download
PXP::Config is a Perl module for PXP configuration. Free Download
JoeDog::Config provides a perl extension for parsing data/configuration file. Free Download
Rsync::Config is a Perl module for rsync configuration generator. Free Download
Latest Software
Popular Software
Favourite Software