Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.858.052 Times

Config::Magic 0.801

  Date Added: March 11, 2010  |  Visits: 742

Config::Magic

Report Broken Link
Printer Friendly Version


Product Homepage
Download (96 downloads)



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..

Requirements: No special requirements
Platforms: Linux
Keyword: Configmagic Hash Libraries Ordered Programming Result Section
Users rating: 0/10

License: Freeware Size: 20.48 KB
USER REVIEWS
More Reviews or Write Review


CONFIG::MAGIC RELATED
Libraries  -  Config::Model 0.612
Config::Model provides a framework to help in validating the semantic content of configuration data. Config::Model can also be used to provide a semantic check of options of a complex program like mplayer or transcode. How does this work ?...
88.06 KB  
Libraries  -  Glib 1.132
Glib are Perl wrappers for the GLib utility and Object libraries. SYNOPSIS use Glib; ABSTRACT This module provides perl access to GLib and GLibs GObject libraries. GLib is a portability and utility library; GObject provides a generic type...
245.76 KB  
Libraries  -  Taint 0.07
Taint is a Perl extension to taint variables. SYNOPSIS use Taint; taint($taintvar[, $anothervar[, $yetmorevars]]); $bool = tainted($vartocheck); taint() marks its arguments as tainted. tainted() returns true if its argument is tainted,...
4.1 KB  
Libraries  -  JsHttpRequest 5.0
JsHttpRequest project is an easy-to-use cross-browser AJAX library with AJAX file uploading support and many other features. JsHttpRequest first appeared as cross-browser analogue of XMLHttpRequest, and then became a very useful instrument to...
122.88 KB  
Networking  -  Sobek`s Posts in Category 1.9
Displays a list of the posts in one or more categories in virtually any way you want. Please read read this post for installation and usage.**IMPORTANT ** If you are upgrading from a version before 1.9 please read this post very carefully. There...
10 KB  
Games  -  KPuzzle 0.4
KPuzzle is a jigsaw puzzle game for the KDE environment. The current version is based on KDE 3 and QT 3, so it should work with every minor release of KDE 3 and QT 3. There are no dependencies on other libraries or programs. For compiling...
2.46 MB  
Libraries  -  Time::Skew 0.1
Time::Skew is a Perl module that computes local clock skew with respect to a remote clock. SYNOPISI use Time::Skew # Init Convex Hull and timing data my $hull=[]; my $result={}; # Iterate data point introduction...
45.06 KB  
Utilities  -  File Verifier++ 0.2.0.3533
FileVerifier++ is an application for Win32 that works to verify file integrity. The program has support for various algorithms and hash libraries that it automatically loads. Hashes are the numbers or code used precisely to verify that a file is...
1024 B  
Education  -  eTests alpha
eTests is a PHP/MySQL web-based platform allowing to set formative evaluations using multiple choice questions. It has been developed during a Phd in education at the University of Namur (Belgium), in the Unit of Didactic of Biology (...
14.73 MB  
Libraries  -  Tie::Hash::Stack 0.09
Tie::Hash::Stack is a Perl module which maintains an array of hashes like a stack. SYNOPSIS use Tie::Hash::Stack qw(pop_hash push_hash merge_hash); my %hash; tie( %hash, "Tie::Hash::Stack" ); # Ties the hash $hash{ 1 } = "one"; $hash{ 2...
6.14 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB