[HOME] [NSRG] [インフラ] [fml4] [fml8] [北海道] [おすすめの本] Powered by NetBSD and [nuinui.net] .

Modifying/Adding Variables After All Configuration Files Have Been Loaded.

The variable expansion is always done. If some value with $ is added to some variable, the next reading operation [1] causes variable expansion.

For example, set

$config->{ key } = '$ml_home_dir/value';
here. The next read operation e.g.
$config->{ another_key }
(where the key is any) evaluates the variable expansion.

Internal Of Variable Expansion

%_fml_config hash holds pairs of key and value. The format is $dir/$file in this hash, it is not expanded. get() returns the value of %_fml_config_result. The value in this hash is after the variable expansion. The variable is expanded in calling get() method.

Notes

[1]

tie() operation of perl

[HOME] [NSRG] [インフラ] [fml4] [fml8] [北海道] [おすすめの本] Powered by NetBSD and [nuinui.net] .
Copyright (C) 1993-2017 Ken'ichi Fukamachi mail:< fukachan at fml.org >