Main > Programming > Libraries >

Config::Fast 1.07

Config::Fast 1.07

Sponsored Links

Config::Fast 1.07 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.010 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 807
Date added: 2007-08-11
Publisher: Nathan Wiger

Config::Fast 1.07 description

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.

Config::Fast 1.07 Screenshot

Advertisements

Config::Fast 1.07 Keywords

Bookmark Config::Fast 1.07

Hyperlink code:
Link for forum:

Config::Fast 1.07 Copyright

WareSeeker periodically updates pricing and software information of Config::Fast 1.07 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::Fast 1.07 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
AppConfig::Std is a Perl subclass of AppConfig that provides standard options. Free Download
Config::Std is a Perl module load and save configuration files in a standard format. Free Download
ConfigFile for Haskell is a configuration file parser and writer library for Haskell. Free Download
Config Maker is a tool to automatically create C++ classes that parse configuration files. Free Download
Config::File is a Perl module to parse a simple configuration file. Free Download
Config::Abstract is a Perl extension for abstracting configuration files. Free Download
NetCARD Config project helps linux users to configure network cards for two ip one for DSL network one for Local Network. Free Download
Config::Sofu is a simple Sofu configuration file parser. Free Download