edit config files 1.7.5
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 11109
Edit Config Files 1.7.5 for Firefox
Edit Config Files is an extension that allows you to edit config files. more>>
Edit Config Files is an extension that allows you to edit config files.
Edit configuration files with your favorite editor from Toolbar or Tools menu.
Remove the menu icon
Add the following to userChrome.css:
#editconfigfiles-menu
{
list-style-image:none !important;
}
<<lessEdit configuration files with your favorite editor from Toolbar or Tools menu.
Remove the menu icon
Add the following to userChrome.css:
#editconfigfiles-menu
{
list-style-image:none !important;
}
Download (0.031MB)
Added: 2007-07-16 License: MPL (Mozilla Public License) Price:
842 downloads
Config::File 1.4
Config::File is a Perl module to parse a simple configuration file. more>>
Config::File is a Perl module to parse a simple configuration file.
SYNOPSIS
use Config::File;
my $config_hash = Config::File::read_config_file($configuration_file);
read_config_file parses a simple configuration file and stores its values in an anonymous hash reference. The syntax of the configuration file is quite simple:
# This is a comment
VALUE_ONE = foo
VALUE_TWO = $VALUE_ONE/bar
VALUE_THREE = The value contains a # (hash). # This is a comment.
Options can be clustered when creating groups:
CLUSTER_ONE[data] = data cluster one
CLUSTER_ONE[value] = value cluster one
CLUSTER_TWO[data] = data cluster two
CLUSTER_TWO[value] = value cluster two
Then values can be fetched using this syntax:
$hash_config->{CLUSTER_ONE}{data};
There can be as many sub-options in a cluster as needed.
BIG_CLUSTER[part1][part2][part3] = data
is fetched by: $hash_config->{BIG_CLUSTER}{part1}{part2}{part3};
There are a couple of restrictions as for the names of the keys. First of all, all the characters should be alphabetic, numeric, underscores or hyphens, with square brackets allowed for the clustering. That is, the keys should conform to /^[A-Za-z0-9_-]+$/
This means also that no space is allowed in the key part of the line.
CLUSTER_ONE[data] = data cluster one # Right
CLUSTER_ONE[ data ] = data cluster one # Wrong
<<lessSYNOPSIS
use Config::File;
my $config_hash = Config::File::read_config_file($configuration_file);
read_config_file parses a simple configuration file and stores its values in an anonymous hash reference. The syntax of the configuration file is quite simple:
# This is a comment
VALUE_ONE = foo
VALUE_TWO = $VALUE_ONE/bar
VALUE_THREE = The value contains a # (hash). # This is a comment.
Options can be clustered when creating groups:
CLUSTER_ONE[data] = data cluster one
CLUSTER_ONE[value] = value cluster one
CLUSTER_TWO[data] = data cluster two
CLUSTER_TWO[value] = value cluster two
Then values can be fetched using this syntax:
$hash_config->{CLUSTER_ONE}{data};
There can be as many sub-options in a cluster as needed.
BIG_CLUSTER[part1][part2][part3] = data
is fetched by: $hash_config->{BIG_CLUSTER}{part1}{part2}{part3};
There are a couple of restrictions as for the names of the keys. First of all, all the characters should be alphabetic, numeric, underscores or hyphens, with square brackets allowed for the clustering. That is, the keys should conform to /^[A-Za-z0-9_-]+$/
This means also that no space is allowed in the key part of the line.
CLUSTER_ONE[data] = data cluster one # Right
CLUSTER_ONE[ data ] = data cluster one # Wrong
Download (0.004MB)
Added: 2007-04-12 License: Perl Artistic License Price:
928 downloads
Config::Fast 1.07
Config::Fast is an extremely fast configuration file parser. more>>
Config::Fast is an extremely fast configuration file parser.
SYNOPSIS
# default config format is a space-separated file
company "Supercool, Inc."
support nobody@nowhere.com
# and then in Perl
use Config::Fast;
%cf = fastconfig;
print "Thanks for visiting $cf{company}!n";
print "Please contact $cf{support} for support.n";
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.
Heres 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 youre really lazy and always in a hurry, like I am.
If this doesnt work for you, simply supply a filename manually. Note that filename generation does not work in mod_perl, so youll need to supply a filename manually.
<<lessSYNOPSIS
# default config format is a space-separated file
company "Supercool, Inc."
support nobody@nowhere.com
# and then in Perl
use Config::Fast;
%cf = fastconfig;
print "Thanks for visiting $cf{company}!n";
print "Please contact $cf{support} for support.n";
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.
Heres 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 youre really lazy and always in a hurry, like I am.
If this doesnt work for you, simply supply a filename manually. Note that filename generation does not work in mod_perl, so youll need to supply a filename manually.
Download (0.010MB)
Added: 2007-08-11 License: Perl Artistic License Price:
805 downloads
Config::IniFiles 2.38
Config::IniFiles is a module for reading .ini-style configuration files. more>>
Config::IniFiles is a module for reading .ini-style configuration files.
SYNOPSIS
use Config::IniFiles;
my $cfg = new Config::IniFiles( -file => "/path/configfile.ini" );
print "The value is " . $cfg->val( Section, Parameter ) . "."
if $cfg->val( Section, Parameter );
Config::IniFiles provides a way to have readable configuration files outside your Perl script. Configurations can be imported (inherited, stacked,...), sections can be grouped, and settings can be accessed from a tied hash.
FILE FORMAT
INI files consist of a number of sections, each preceded with the section name in square brackets. The first non-blank character of the line indicating a section must be a left bracket and the last non-blank character of a line indicating a section must be a right bracket. The characters making up the section name can be any symbols at all. However section names must be unique.
Parameters are specified in each section as Name=Value. Any spaces around the equals sign will be ignored, and the value extends to the end of the line. Parameter names are localized to the namespace of the section, but must be unique within a section.
[section]
Parameter=Value
Both the hash mark (#) and the semicolon (;) are comment characters. by default (this can be changed by configuration) Lines that begin with either of these characters will be ignored. Any amount of whitespace may precede the comment character.
Multi-line or multi-valued parameters may also be defined ala UNIX "here document" syntax:
Parameter=<<less
SYNOPSIS
use Config::IniFiles;
my $cfg = new Config::IniFiles( -file => "/path/configfile.ini" );
print "The value is " . $cfg->val( Section, Parameter ) . "."
if $cfg->val( Section, Parameter );
Config::IniFiles provides a way to have readable configuration files outside your Perl script. Configurations can be imported (inherited, stacked,...), sections can be grouped, and settings can be accessed from a tied hash.
FILE FORMAT
INI files consist of a number of sections, each preceded with the section name in square brackets. The first non-blank character of the line indicating a section must be a left bracket and the last non-blank character of a line indicating a section must be a right bracket. The characters making up the section name can be any symbols at all. However section names must be unique.
Parameters are specified in each section as Name=Value. Any spaces around the equals sign will be ignored, and the value extends to the end of the line. Parameter names are localized to the namespace of the section, but must be unique within a section.
[section]
Parameter=Value
Both the hash mark (#) and the semicolon (;) are comment characters. by default (this can be changed by configuration) Lines that begin with either of these characters will be ignored. Any amount of whitespace may precede the comment character.
Multi-line or multi-valued parameters may also be defined ala UNIX "here document" syntax:
Parameter=<<less
Download (0.036MB)
Added: 2006-06-15 License: Perl Artistic License Price:
1226 downloads
ConfigFile for Haskell 1.0.0
ConfigFile for Haskell is a configuration file parser and writer library for Haskell. more>>
ConfigFile for Haskell is a configuration file parser and writer library for Haskell.
The ConfigFile module works with configuration files in a standard format that is easy for the user to edit, easy for the programmer to work with, yet remains powerful and flexible. It is inspired by, and compatible with, Pythons ConfigParser module. It uses files that resemble Windows .INI-style files, but with numerous improvements.
ConfigFile provides simple calls to both read and write config files. Its possible to make a config file parsable by this module, the Unix shell, and make.
Enhancements:
- This package was formerly part of MissingH and is being split off as part of the MissingH transition plan.
<<lessThe ConfigFile module works with configuration files in a standard format that is easy for the user to edit, easy for the programmer to work with, yet remains powerful and flexible. It is inspired by, and compatible with, Pythons ConfigParser module. It uses files that resemble Windows .INI-style files, but with numerous improvements.
ConfigFile provides simple calls to both read and write config files. Its possible to make a config file parsable by this module, the Unix shell, and make.
Enhancements:
- This package was formerly part of MissingH and is being split off as part of the MissingH transition plan.
Download (0.034MB)
Added: 2006-12-11 License: LGPL (GNU Lesser General Public License) Price:
1047 downloads
Simple Config 1.1.1
Simple Config library supports configuration files consisting of simple name-value pairs, similar to the old Windows INI files. more>>
Simple Config library supports configuration files consisting of simple name-value pairs, similar to the old Windows INI files. A config file can be loaded into memory, queried by item name, modified, and written back out to a file. Configuration items may also be "watched", which causes a user-supplied callback function to be called with the named item is modified
Client code can query the configuration system for named values, set named values, test the type of values (STR, INT, FIX, BOOL, DATE or TIME) and watch values for changes. The system can update the configuration file when the application has changed or added values, even preserving the original format and commens from the input configuration file.
Theres not much to it, at the moment, not even a manpage, so youre on your own as far as using the library. There is a ReadMe file and a makefile, so you can easily build and install the library.
The whole thing took about a week to design, code and test, so its no heroic effort or anything. With a bit more time and energy it could probably be something really spectacular. My main point was that, given the simple problem statement, it was (relatively) trivial to code up a conforming solution.
Enhancements:
- The hashtable code was updated.
- No changes were made to functionality, but it is now more heap-friendly with less heap fragmentation and faster bucket allocation.
- The ground work for automatic table resizing has been laid.
<<lessClient code can query the configuration system for named values, set named values, test the type of values (STR, INT, FIX, BOOL, DATE or TIME) and watch values for changes. The system can update the configuration file when the application has changed or added values, even preserving the original format and commens from the input configuration file.
Theres not much to it, at the moment, not even a manpage, so youre on your own as far as using the library. There is a ReadMe file and a makefile, so you can easily build and install the library.
The whole thing took about a week to design, code and test, so its no heroic effort or anything. With a bit more time and energy it could probably be something really spectacular. My main point was that, given the simple problem statement, it was (relatively) trivial to code up a conforming solution.
Enhancements:
- The hashtable code was updated.
- No changes were made to functionality, but it is now more heap-friendly with less heap fragmentation and faster bucket allocation.
- The ground work for automatic table resizing has been laid.
Download (0.023MB)
Added: 2006-12-21 License: GPL (GNU General Public License) Price:
1039 downloads
ConfigReader::Simple 1.25
ConfigReader::Simple is a simple configuration file parser. more>>
ConfigReader::Simple is a simple configuration file parser.
SYNOPSIS
use ConfigReader::Simple;
# parse one file
$config = ConfigReader::Simple->new("configrc", [qw(Foo Bar Baz Quux)]);
# parse multiple files, in order
$config = ConfigReader::Simple->new_multiple(
Files => [ "global", "configrc" ],
Keys => [qw(Foo Bar Baz Quux)]
);
my @directives = $config->directives;
$config->get( "Foo" );
if( $config->exists( "Bar" ) )
{
print "Bar was in the config filen";
}
# copy an object to play with it separately
my $clone = $config->clone;
# only affects clone
$clone->set( "Foo", "Buster" );
# save the config to a single file
$clone->save( "configrc" )
# save the config to a single file, but only with
# certain directives
$clone->save( "configrc" => [qw(Foo Bar)] )
# save to multiple configuration files
$clone->save(
"configrc" => [qw(Foo Bar)],
"global" => [qw(Baz Quux)],
);
ConfigReader::Simple reads and parses simple configuration files. It is designed to be smaller and simpler than the ConfigReader module and is more suited to simple configuration files.
<<lessSYNOPSIS
use ConfigReader::Simple;
# parse one file
$config = ConfigReader::Simple->new("configrc", [qw(Foo Bar Baz Quux)]);
# parse multiple files, in order
$config = ConfigReader::Simple->new_multiple(
Files => [ "global", "configrc" ],
Keys => [qw(Foo Bar Baz Quux)]
);
my @directives = $config->directives;
$config->get( "Foo" );
if( $config->exists( "Bar" ) )
{
print "Bar was in the config filen";
}
# copy an object to play with it separately
my $clone = $config->clone;
# only affects clone
$clone->set( "Foo", "Buster" );
# save the config to a single file
$clone->save( "configrc" )
# save the config to a single file, but only with
# certain directives
$clone->save( "configrc" => [qw(Foo Bar)] )
# save to multiple configuration files
$clone->save(
"configrc" => [qw(Foo Bar)],
"global" => [qw(Baz Quux)],
);
ConfigReader::Simple reads and parses simple configuration files. It is designed to be smaller and simpler than the ConfigReader module and is more suited to simple configuration files.
Download (0.011MB)
Added: 2007-04-12 License: Perl Artistic License Price:
934 downloads
Config::JSON 1.0.3
Config::JSON is a JSON based config file system. more>>
Config::JSON is a JSON based config file system.
SYNOPSIS
use Config::JSON;
my $config = Config::JSON->create($pathToFile);
my $config = Config::JSON->new($pathToFile);
my $element = $config->get($param);
$config->set($param,$value);
$config->delete($param);
$config->deleteFromHash($name, $key);
$config->deleteFromArray($name, $value);
$config->addToHash($name, $key, $value);
$config->addToArray($name, $value);
my $path = $config->getFilename;
Example Config File
# config-file-type: JSON 1
{
"dsn" : "DBI:mysql:test",
"user" : "tester",
"password" : "xxxxxx",
# some colors to choose from
"colors" : [ "red", "green", "blue" ],
# some statistics
"stats" : {
"health" : 32,
"vitality" : 11
}
}
Note that you can put comments in the config file as long as # is the first non-space character on the line. However, if you use this API to write to the config file, your comments will be eliminated.
<<lessSYNOPSIS
use Config::JSON;
my $config = Config::JSON->create($pathToFile);
my $config = Config::JSON->new($pathToFile);
my $element = $config->get($param);
$config->set($param,$value);
$config->delete($param);
$config->deleteFromHash($name, $key);
$config->deleteFromArray($name, $value);
$config->addToHash($name, $key, $value);
$config->addToArray($name, $value);
my $path = $config->getFilename;
Example Config File
# config-file-type: JSON 1
{
"dsn" : "DBI:mysql:test",
"user" : "tester",
"password" : "xxxxxx",
# some colors to choose from
"colors" : [ "red", "green", "blue" ],
# some statistics
"stats" : {
"health" : 32,
"vitality" : 11
}
}
Note that you can put comments in the config file as long as # is the first non-space character on the line. However, if you use this API to write to the config file, your comments will be eliminated.
Download (0.005MB)
Added: 2007-04-12 License: Perl Artistic License Price:
925 downloads
AppConfig::Std 1.07
AppConfig::Std is a Perl subclass of AppConfig that provides standard options. more>>
AppConfig::Std is a Perl subclass of AppConfig that provides standard options.
SYNOPSIS
use AppConfig::Std;
$config = AppConfig::Std->new();
# all AppConfig methods supported
$config->define(foo); # define variable foo
$config->set(foo, 25); # setting a variable
$val = $config->get(foo); # getting variable
$val = $config->foo(); # shorthand for getting
$config->args(@ARGV); # parse command-line
$config->file(".myconfigrc") # read config file
AppConfig::Std is a Perl module that provides a set of standard configuration variables and command-line switches. It is implemented as a subclass of AppConfig; AppConfig provides a general mechanism for handling global configuration variables.
The features provided by AppConfig::Std are:
Standard command-line arguments: -help, -doc, -version, -verbose, and -debug. AppConfig::Std handles the -help, -doc, and -version switches for you, so you dont need to duplicate that code in all of your scripts. These are described below.
The ARGCOUNT default is set to 1. This means that by default all switches are expected to take a value. To change this, set the ARGCOUNT parameter when defining the variable:
$config->define(verbose, { ARGCOUNT => 0 } );
Please read the copious documentation for AppConfig to find out what else you can do with this module.
<<lessSYNOPSIS
use AppConfig::Std;
$config = AppConfig::Std->new();
# all AppConfig methods supported
$config->define(foo); # define variable foo
$config->set(foo, 25); # setting a variable
$val = $config->get(foo); # getting variable
$val = $config->foo(); # shorthand for getting
$config->args(@ARGV); # parse command-line
$config->file(".myconfigrc") # read config file
AppConfig::Std is a Perl module that provides a set of standard configuration variables and command-line switches. It is implemented as a subclass of AppConfig; AppConfig provides a general mechanism for handling global configuration variables.
The features provided by AppConfig::Std are:
Standard command-line arguments: -help, -doc, -version, -verbose, and -debug. AppConfig::Std handles the -help, -doc, and -version switches for you, so you dont need to duplicate that code in all of your scripts. These are described below.
The ARGCOUNT default is set to 1. This means that by default all switches are expected to take a value. To change this, set the ARGCOUNT parameter when defining the variable:
$config->define(verbose, { ARGCOUNT => 0 } );
Please read the copious documentation for AppConfig to find out what else you can do with this module.
Download (0.006MB)
Added: 2007-04-12 License: Perl Artistic License Price:
925 downloads
dtRdr::Config 0.0.11
dtRdr::Config is a Perl module with Factory class for configuration system. more>>
dtRdr::Config is a Perl module with Factory class for configuration system.
Factory Methods
factory_read_config
Constructor function (see new)
my $obj = factory_read_config($file);
new
$conf = dtRdr::Config->new($file);
get_library_info
my @libraries = $conf->get_library_info;
<<lessFactory Methods
factory_read_config
Constructor function (see new)
my $obj = factory_read_config($file);
new
$conf = dtRdr::Config->new($file);
get_library_info
my @libraries = $conf->get_library_info;
Download (2.8MB)
Added: 2007-03-14 License: Perl Artistic License Price:
955 downloads
Config::Std 0.0.4
Config::Std is a Perl module load and save configuration files in a standard format. more>>
Config::Std is a Perl module load and save configuration files in a standard format.
SYNOPSIS
use Config::Std;
# Load named config file into specified hash...
read_config demo2.cfg => my %config;
# Extract the value of a key/value pair from a specified section...
$config_value = $config{Section_label}{key};
# Change (or create) the value of a key/value pair...
$config{Other_section_label}{other_key} = $new_val;
# Update the config file from which this hash was loaded...
write_config %config;
# Write the config information to another file as well...
write_config %config, $other_file_name;
This module implements yet another damn configuration-file system.
The configuration language is deliberately simple and limited, and the module works hard to preserve as much information (section order, comments, etc.) as possible when a configuration file is updated.
See Chapter 19 of "Perl Best Practices" (OReilly, 2005) for the rationale for this approach.
<<lessSYNOPSIS
use Config::Std;
# Load named config file into specified hash...
read_config demo2.cfg => my %config;
# Extract the value of a key/value pair from a specified section...
$config_value = $config{Section_label}{key};
# Change (or create) the value of a key/value pair...
$config{Other_section_label}{other_key} = $new_val;
# Update the config file from which this hash was loaded...
write_config %config;
# Write the config information to another file as well...
write_config %config, $other_file_name;
This module implements yet another damn configuration-file system.
The configuration language is deliberately simple and limited, and the module works hard to preserve as much information (section order, comments, etc.) as possible when a configuration file is updated.
See Chapter 19 of "Perl Best Practices" (OReilly, 2005) for the rationale for this approach.
Download (0.012MB)
Added: 2007-01-18 License: Perl Artistic License Price:
1009 downloads
Config::Framework 2.5
Config::Framework is a Perl module with handy one-stop shopping for (most) of your configuration file needs. more>>
Config::Framework is a Perl module with handy one-stop shopping for (most) of your configuration file needs.
SYNOPSIS
#create a new object, load two configuration files and decrypt the passwords. my $Object = new Config::Framework( Files => [ApplicationCfg.xml,UserCfg.xml], GetSecure => 1 ) || die $Config::Framework::errstr;
#change some data in one of the loaded configs $Object->{UserCfg}->{backgroundColor} = #00CCFF;
#write that change back to the file you loaded it from $Object->WriteConfig(configNamespace => "UserCfg") || die $Object->{errstr};
#Define a new configuration namespace %{ $Object->{newConfig} } = ( configNamespace => "newConfig", protectNamespace => 1, Version => 1, #arbitrary data keys follow backgroundColor => #006699, getRecords => 10, followLinks => 1, someThing => "in a bag" );
#Write your new configuration data out to an encrypted file #under the applications ApplicationFramework directory $Object->WriteConfig( configNamespace => "newConfig", Encrypt => 1, Crypt => "Rijndael", Key => "l33tp4sw3rd" File => "$Object->{FrameworkDir}/newConfig.xml" ) || die $Object->{errstr};
At long last I have decided to re-write the documentation for Config::Framework, in a manner which should be comprehensible by people other than myself. I would like to offer my sincerest appologies to anyone who tried to comprehend the sprawling stream-of-consiousness rant that was the previous documentation. Im sorry, I wasnt trying to make you insane. Now on with the show.
Ok so what is Config::Framework? Its a handy module for dealing with situations where you need your program to be able to load external data from a file that controls how your program operates. Im talking about configuration files here. So what do you do in a situation like that? Well you figure out a format to store your configuration parameters in, then write routines to read that format and put it some sort of meaningful data structure, and to write data from the data structure back out to the file.
Wouldnt it be nice if someone defined a standard config file format so that you wouldnt need to write your own parser? Well in the end, all a config file really is, is an arbitrary data structure expressed in in ascii. A standard way of serializing data structures in ascii you say? That sounds a bit like XML! Well the Data::DumpXML module will serialize perl data structures into XML and restore them for you, and you could certainly dump that to a file easily enough.
Ok getting to the point. The main thing that Config::Framework does for you is to define a standard data structure (or at least some standard guidelines for your data structure) and then front-ends Data::DumpXML so that you can arbitrarily dump and restore these data structures to files.
While were at it, Config::Framework aspires to be your one-stop-shop for config-type-stuff, by helping you stay organized in the way you handle external configuration data.
<<lessSYNOPSIS
#create a new object, load two configuration files and decrypt the passwords. my $Object = new Config::Framework( Files => [ApplicationCfg.xml,UserCfg.xml], GetSecure => 1 ) || die $Config::Framework::errstr;
#change some data in one of the loaded configs $Object->{UserCfg}->{backgroundColor} = #00CCFF;
#write that change back to the file you loaded it from $Object->WriteConfig(configNamespace => "UserCfg") || die $Object->{errstr};
#Define a new configuration namespace %{ $Object->{newConfig} } = ( configNamespace => "newConfig", protectNamespace => 1, Version => 1, #arbitrary data keys follow backgroundColor => #006699, getRecords => 10, followLinks => 1, someThing => "in a bag" );
#Write your new configuration data out to an encrypted file #under the applications ApplicationFramework directory $Object->WriteConfig( configNamespace => "newConfig", Encrypt => 1, Crypt => "Rijndael", Key => "l33tp4sw3rd" File => "$Object->{FrameworkDir}/newConfig.xml" ) || die $Object->{errstr};
At long last I have decided to re-write the documentation for Config::Framework, in a manner which should be comprehensible by people other than myself. I would like to offer my sincerest appologies to anyone who tried to comprehend the sprawling stream-of-consiousness rant that was the previous documentation. Im sorry, I wasnt trying to make you insane. Now on with the show.
Ok so what is Config::Framework? Its a handy module for dealing with situations where you need your program to be able to load external data from a file that controls how your program operates. Im talking about configuration files here. So what do you do in a situation like that? Well you figure out a format to store your configuration parameters in, then write routines to read that format and put it some sort of meaningful data structure, and to write data from the data structure back out to the file.
Wouldnt it be nice if someone defined a standard config file format so that you wouldnt need to write your own parser? Well in the end, all a config file really is, is an arbitrary data structure expressed in in ascii. A standard way of serializing data structures in ascii you say? That sounds a bit like XML! Well the Data::DumpXML module will serialize perl data structures into XML and restore them for you, and you could certainly dump that to a file easily enough.
Ok getting to the point. The main thing that Config::Framework does for you is to define a standard data structure (or at least some standard guidelines for your data structure) and then front-ends Data::DumpXML so that you can arbitrarily dump and restore these data structures to files.
While were at it, Config::Framework aspires to be your one-stop-shop for config-type-stuff, by helping you stay organized in the way you handle external configuration data.
Download (0.015MB)
Added: 2006-09-26 License: Perl Artistic License Price:
1125 downloads
App::Conf::File 0.965
App::Conf::File is a Perl module to load and access configuration data. more>>
App::Conf::File is a Perl module to load and access configuration data.
SYNOPSIS
use App::Conf;
$config = App::Conf->new();
$config = App::Conf->new(configFile => $file);
print $config->dump(), "n"; # use Data::Dumper to spit out the Perl representation
# accessors
$property_value = $config->get($property_name);
$branch = $config->get_branch($branch_name); # get hashref of properties
# on-demand loading helper methods (private methods)
$config->overlay($config2); # merge the two config structures using overlay rules
$config->overlay($config1, $config2); # merge $config2 onto $config1
$config->graft($branch_name, $config2); # graft new config structure onto branch
# By convention, the configurations for each App-Context service will be located
# two levels under the hash ref as shown.
$config->{Conf} # config settings for all Conf services
$config->{Conf}{default} # config settings for the default Conf service
$config->{Security} # config settings for all Security services
$config->{Security}{default} # config settings for the default Security service
$config->{Template}{tt} # config settings for the Template service named "tt"
# The default driver (if "configClass" not supplied) reads in a Perl
# data structure from the file. Alternate drivers can read a Storable,
# unvalidated XML, DTD-validated XML, RDF-validated XML, or any other
# file format or data source anyone cares to write a driver for.
$conf = {
Standard => {
Log-Dispatch => {
logdir => /var/p5ee,
}
},
Authen => {
passwd => /etc/passwd,
seed => 303292,
},
};
# A comparable unvalidating XML file would look like this.
< conf>
< Standard>
< Log-Dispatch logdir="/var/p5ee"/>
< /Standard>
< Authen passwd="/etc/passwd" seed="303292"/>
< /conf>
# A comparable ini file (.ini) would look like this.
[Standard.Log-Dispatch]
logdir = /var/p5ee
[Authen]
passwd = /etc/passwd
seed = 303292
# A comparable Java properties-like file would look like this.
Standard.Log-Dispatch.logdir = /var/p5ee
Authen.passwd = /etc/passwd
Authen.seed = 303292
<<lessSYNOPSIS
use App::Conf;
$config = App::Conf->new();
$config = App::Conf->new(configFile => $file);
print $config->dump(), "n"; # use Data::Dumper to spit out the Perl representation
# accessors
$property_value = $config->get($property_name);
$branch = $config->get_branch($branch_name); # get hashref of properties
# on-demand loading helper methods (private methods)
$config->overlay($config2); # merge the two config structures using overlay rules
$config->overlay($config1, $config2); # merge $config2 onto $config1
$config->graft($branch_name, $config2); # graft new config structure onto branch
# By convention, the configurations for each App-Context service will be located
# two levels under the hash ref as shown.
$config->{Conf} # config settings for all Conf services
$config->{Conf}{default} # config settings for the default Conf service
$config->{Security} # config settings for all Security services
$config->{Security}{default} # config settings for the default Security service
$config->{Template}{tt} # config settings for the Template service named "tt"
# The default driver (if "configClass" not supplied) reads in a Perl
# data structure from the file. Alternate drivers can read a Storable,
# unvalidated XML, DTD-validated XML, RDF-validated XML, or any other
# file format or data source anyone cares to write a driver for.
$conf = {
Standard => {
Log-Dispatch => {
logdir => /var/p5ee,
}
},
Authen => {
passwd => /etc/passwd,
seed => 303292,
},
};
# A comparable unvalidating XML file would look like this.
< conf>
< Standard>
< Log-Dispatch logdir="/var/p5ee"/>
< /Standard>
< Authen passwd="/etc/passwd" seed="303292"/>
< /conf>
# A comparable ini file (.ini) would look like this.
[Standard.Log-Dispatch]
logdir = /var/p5ee
[Authen]
passwd = /etc/passwd
seed = 303292
# A comparable Java properties-like file would look like this.
Standard.Log-Dispatch.logdir = /var/p5ee
Authen.passwd = /etc/passwd
Authen.seed = 303292
Download (0.12MB)
Added: 2007-06-21 License: Perl Artistic License Price:
856 downloads
Log::Dispatch::Config 1.01
Log::Dispatch::Config is a Log4j for Perl. more>>
Log::Dispatch::Config is a Log4j for Perl.
SYNOPSIS
use Log::Dispatch::Config;
Log::Dispatch::Config->configure(/path/to/log.conf);
my $dispatcher = Log::Dispatch::Config->instance;
$dispatcher->debug(this is debug message);
$dispatcher->emergency(something *bad* happened!);
# automatic reloading conf file, when modified
Log::Dispatch::Config->configure_and_watch(/path/to/log.conf);
# or if you write your own config parser:
use Log::Dispatch::Configurator::XMLSimple;
my $config = Log::Dispatch::Configurator::XMLSimple->new(log.xml);
Log::Dispatch::Config->configure($config);
Log::Dispatch::Config is a subclass of Log::Dispatch and provides a way to configure Log::Dispatch object with configulation file (default, in AppConfig format). I mean, this is log4j for Perl, not with all API compatibility though.
METHOD
This module has a class method configure which parses config file for later creation of the Log::Dispatch::Config singleton instance. (Actual construction of the object is done in the first instance call).
So, what you should do is call configure method once in somewhere (like startup.pl in mod_perl), then you can get configured dispatcher instance via Log::Dispatch::Config->instance.
<<lessSYNOPSIS
use Log::Dispatch::Config;
Log::Dispatch::Config->configure(/path/to/log.conf);
my $dispatcher = Log::Dispatch::Config->instance;
$dispatcher->debug(this is debug message);
$dispatcher->emergency(something *bad* happened!);
# automatic reloading conf file, when modified
Log::Dispatch::Config->configure_and_watch(/path/to/log.conf);
# or if you write your own config parser:
use Log::Dispatch::Configurator::XMLSimple;
my $config = Log::Dispatch::Configurator::XMLSimple->new(log.xml);
Log::Dispatch::Config->configure($config);
Log::Dispatch::Config is a subclass of Log::Dispatch and provides a way to configure Log::Dispatch object with configulation file (default, in AppConfig format). I mean, this is log4j for Perl, not with all API compatibility though.
METHOD
This module has a class method configure which parses config file for later creation of the Log::Dispatch::Config singleton instance. (Actual construction of the object is done in the first instance call).
So, what you should do is call configure method once in somewhere (like startup.pl in mod_perl), then you can get configured dispatcher instance via Log::Dispatch::Config->instance.
Download (0.011MB)
Added: 2007-06-12 License: Perl Artistic License Price:
864 downloads
JoeDog::Config 2.01
JoeDog::Config provides a perl extension for parsing data/configuration file. more>>
JoeDog::Config provides a perl extension for parsing data/configuration file.
It reads columns, key-value pairs, and INI style config files into arrays, hashes and hashes of hashes. It can take characters or regexes for separators.
ABSTRACT:
This is a autoloadable module which allows the programmer
to read data from an configuration file into various perl
data types, arrays, multi-dimentional arrays and hashes.
INSTALLATION
JoeDog::Config.pm was built using perl Make::Maker utility
If you are familiar with that utility you should have no
problem with this installation as it will be familiar:
$ perl Makefile.PL
$ make
$ make test
$ su
$ make install
USAGE
use JoeDog::Config;
my $cnf = new JoeDog::Config(filename);
my @array = $cnf->get_column();
my @arrays = $cnf->get_columns(sep);
my @aoa = $cnf->get_table(sep,num);
my @aoa = $cnf->get_table(sep,[num1, num2, etc...]);
my %hash = $cnf->get_hash(sep);
my %hashes = $cnf->get_hashes(sep);
<<lessIt reads columns, key-value pairs, and INI style config files into arrays, hashes and hashes of hashes. It can take characters or regexes for separators.
ABSTRACT:
This is a autoloadable module which allows the programmer
to read data from an configuration file into various perl
data types, arrays, multi-dimentional arrays and hashes.
INSTALLATION
JoeDog::Config.pm was built using perl Make::Maker utility
If you are familiar with that utility you should have no
problem with this installation as it will be familiar:
$ perl Makefile.PL
$ make
$ make test
$ su
$ make install
USAGE
use JoeDog::Config;
my $cnf = new JoeDog::Config(filename);
my @array = $cnf->get_column();
my @arrays = $cnf->get_columns(sep);
my @aoa = $cnf->get_table(sep,num);
my @aoa = $cnf->get_table(sep,[num1, num2, etc...]);
my %hash = $cnf->get_hash(sep);
my %hashes = $cnf->get_hashes(sep);
Download (0.014MB)
Added: 2007-03-23 License: GPL (GNU General Public License) Price:
945 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above edit config files 1.7.5 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