Config-General-Hierarchical
view release on metacpan or search on metacpan
lib/Config/General/Hierarchical.pm view on Meta::CPAN
If a B<value> contains the following syntax
${variable_name}
this token is substituted with the B<value> of C<variable_name>. The I<inline variable
substitution> is made at get time, so the B<value> substituted is the final one of the
variable. The B<value> of C<variable_name> is obtained by a C<get()> call, so the B<syntax
constraiant> check is performed on it before the substitution.
To do the I<inline variable substituition> is necessary that a reference to the B<root
node> is still alive, otherwise a C<die()> is called. Anyway, it is possible to call the
C<check()> method on the B<node> before loosing the B<root node> reference in order to
cache all the values. It can be called explicitally on a B<node> of implicitally by
the C<new()> methed using the C<check> parameter with a true value.
# config.conf file
<node>
key ${var}
</node>
var value
( run in 1.229 second using v1.01-cache-2.11-cpan-39bf76dae61 )