Subject: | variables not interpolated in keys |
Config-General-2.21
This is perl, v5.8.0 built for i386-linux-thread-multi
The documentation says that "Variables can be defined everywhere in the config and can be used afterwards". That implies they can be used anywhere. But with a configuration such as:
<foo>
${something}
${somethingelse}
</foo>
then ${something} and ${somethingelse} are never interpolated because they are keys (without any values).
In a simple configuration, I could just modify it to be:
<foo>
bar ${something}
bar ${somethingelse}
</foo>
however the rest of my configuration depends on -MergeDuplicateOptions being set because I want to be able to easily set and override variables in multiple included files without having to go through an array of them in the code every time. Because of that, and the fact that you have to define if duplicates are merged globally, the simplest approach is to have the ability to just have a key and have the key be interpolated.
I can appreciate arguments for not wanting to interpolate keys, in which case the documentation should be clarified to be specific that only values are interpolated.
Thanks, useful package.