Port details on branch 2022Q3 |
- p5-Config-Fast Extremely fast configuration file parser
- 1.07_1 devel =0 1.07_1Version of this port present on the latest quarterly branch.
- Maintainer: kiwi@oav.net
- Port Added: 2004-03-21 02:06:06
- Last Update: 2022-09-07 21:58:51
- Commit Hash: fb16dfe
- Also Listed In: perl5
- License: not specified in port
- WWW:
- https://metacpan.org/release/Config-Fast
- Description:
- 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.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-Config-Fast>0:devel/p5-Config-Fast
- To install the port:
- cd /usr/ports/devel/p5-Config-Fast/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/p5-Config-Fast
- pkg install p5-Config-Fast
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-Config-Fast
- Flavors: there is no flavor information for this port.
- distinfo:
- SHA256 (Config-Fast-1.07.tar.gz) = 7b03043b2a722384af570cea7083f68c437744cea902cfa89ed00b6821cc5d8f
SIZE (Config-Fast-1.07.tar.gz) = 10020
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Runtime dependencies:
-
- perl5>=5.32.r0<5.33 : lang/perl5.32
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- devel_p5-Config-Fast
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|