fml 8 tutorial
Prev | Chapter 29. Configuration File: config.cf | Next

# 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

Prev | Home | Next
Overload Variables In config.cf | Up | Variable List (Alphabetical Order)

fml 8.0 (fml-devel) project homepage is www.fml.org/software/fml8/.
fml 4.0 project homepage is www.fml.org/software/fml4/.
about one floppy bsd routers, see www.bsdrouter.org/.
other free softwares are found at www.fml.org/software/.

author's homepage is www.fml.org/home/fukachan/.
Also, visit nuinui's world :) at www.nuinui.net.

For questions about FML, e-mail <fml-bugs@fml.org>.