Config-Fast
view release on metacpan or search on metacpan
Instead of the default:
$conf{matrix[0]} = 'a b c';
$conf{matrix[1]} = 'd e f';
$conf{matrix[2]} = 'g h i';
@Define
This allows you to pre-define var=val pairs that are set before the
parsing of the config file. I introduced this feature to solve a
specific problem: Executable relocation. In my config files, I put
definitions such as:
# Parsed by Config::Fast and sourced by shell scripts
BIN="$ROOT/bin"
SBIN="$ROOT/sbin"
LIB="$ROOT/lib"
ETC="$ROOT/etc"
With the goal that this file would be equally usable by both Perl
and shell scripts.
lib/Config/Fast.pm view on Meta::CPAN
Instead of the default:
$conf{matrix[0]} = 'a b c';
$conf{matrix[1]} = 'd e f';
$conf{matrix[2]} = 'g h i';
=item @Define
This allows you to pre-define var=val pairs that are set before the parsing
of the config file. I introduced this feature to solve a specific problem:
Executable relocation. In my config files, I put definitions such as:
# Parsed by Config::Fast and sourced by shell scripts
BIN="$ROOT/bin"
SBIN="$ROOT/sbin"
LIB="$ROOT/lib"
ETC="$ROOT/etc"
With the goal that this file would be equally usable by both Perl and
shell scripts.
( run in 0.696 second using v1.01-cache-2.11-cpan-71847e10f99 )