p5-Config-Fast - Extremely fast configuration file parser

Property Value
Distribution FreeBSD 11
Repository FreeBSD Ports Latest amd64
Package filename p5-Config-Fast-1.07_1.txz
Package name p5-Config-Fast
Package version 1.07
Package release 1
Package architecture amd64
Package type txz
Category devel perl5
Homepage https://metacpan.org/release/Config-Fast
License -
Maintainer kiwi@oav.net
Download size 10.84 KB
Installed size 17.59 KB
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:
%25cf = 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 %25cf = 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:
Then fastconfig() will automatically look for:
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.
WWW: https://metacpan.org/release/Config-Fast


Package Version Architecture Repository
p5-Config-Fast-1.07_1.txz 1.07 i386 FreeBSD Ports Quarterly
p5-Config-Fast-1.07_1.txz 1.07 amd64 FreeBSD Ports Quarterly
p5-Config-Fast-1.07_1.txz 1.07 i386 FreeBSD Ports Latest
p5-Config-Fast - - -


Name Value
perl5 = 5.28.1_1


Type URL
Mirror pkg.freebsd.org
Binary Package p5-Config-Fast-1.07_1.txz
Source Package devel/p5-Config-Fast

Install Howto

Install p5-Config-Fast txz package:

# pkg install p5-Config-Fast

See Also

Package Description
p5-Config-General-2.63.txz Perl5 module for handling Apache-style configuration files
p5-Config-GitLike-1.17.txz Simple git-compatible config file parser for Perl
p5-Config-Grammar-1.10_1.txz Grammar-based, user-friendly config parser
p5-Config-INI-0.025.txz Simple .ini files emitter and parser for Perl
p5-Config-INI-Reader-Ordered-0.020.txz INI-file parser that returns sections in order
p5-Config-INI-Simple-1.00.txz Simple reading and writing from an INI file
p5-Config-Identity-0.0019.txz Load (and optionally decrypt via GnuPG) user/pass identity information
p5-Config-IniFiles-3.000002.txz Read .ini-style configuration files
p5-Config-IniHash-3.01.01_1.txz Perl extension for reading and writing INI files
p5-Config-IniRegEx-0.01_1.txz Ini workaround, regex search for parameters and sections
p5-Config-JFDI-0.065_1.txz Catalyst::Plugin::ConfigLoader-style layer over Config::Any
p5-Config-JSON-1.5202.txz JSON based config file system
p5-Config-MVP-2.200011.txz Multivalue-property package-oriented configuration
p5-Config-MVP-Reader-INI-2.101463.txz MVP config reader for .ini files
p5-Config-Merge-1.04_1.txz Load a configuration directory tree in a number of languages