Config::Any provides a facility for Perl applications and libraries to load
configuration data from multiple different file formats. It supports XML, YAML,
JSON, Apache-style configuration, Windows INI files, and even Perl code.
The rationale for this module is as follows: Perl programs are deployed on many
different platforms and integrated with many different systems. Systems
administrators and end users may prefer different configuration formats than the
developers. The flexibility inherent in a multiple format configuration loader
allows different users to make different choices, without generating extra work
for the developers. As a developer you only need to learn a single interface to
be able to use the power of different configuration formats.
diStorm is a binary stream disassembler of x86 instructions. It can operate
in 16, 32, and 64 bit modes, and supports FPU, MMX, SSE, SSE2, SSE3, SSE4,
3DNow! (with extensions), x86-64, VMX, AMD SVM, and AVX instruction sets.
diStorm was written to decode every instruction quickly and accurately, with
robust handling of valid and unused prefixes. The output is a special structure
that can describe any x86 instruction, and later be formatted into text for
display.
Parse diverse config file formats 'magically'.
Config::AutoConf is a module to implement some of AutoConf macros
in pure perl.
This module is designed to provide an extremely lightweight way to parse
moderately complex configuration files. As such, it exports a single
function - fastconfig() - and does not provide any OO access methods.
Still, it is fairly full-featured.
Here's how it works:
%cf = fastconfig($file, $delim);
Basically, the fastconfig() function returns a hash of keys and values
based on the directives in your configuration file. By default, directives
and values are separated by whitespace in the config file, but this can be
easily changed with the delimiter argument (see below).
When the configuration file is read, its modification time is first
checked and the results cached. On each call to fastconfig(), if the
config file has been changed, then the file is reread. Otherwise, the
cached results are returned automatically. This makes this module great
for mod_perl modules and scripts, one of the primary reasons I wrote it.
Simply include this at the top of your script or inside of your
constructor function:
my %cf = fastconfig('/path/to/config/file.conf');
If the file argument is omitted, then fastconfig() looks for a file named
$0.conf in the ../etc directory relative to the executable. For example,
if you ran:
/usr/local/bin/myapp
Then fastconfig() will automatically look for:
/usr/local/etc/myapp.conf
This is great if you're really lazy and always in a hurry, like I am.
If this doesn't work for you, simply supply a filename manually. Note that
filename generation does not work in mod_perl, so you'll need to supply a
filename manually.
Simple git-compatible config file parser for Perl.
A grammar-based, user-friendly config parser
Module to provide a configuration hash with option to read from file.
Config::Properties is a near implementation of the java.util.Properties API.
It is designed to allow easy reading, writing and manipulation of Java-style
property files.
Simple .ini files emitter and parser for Perl.