I have a series of templates in a pseudocode style, used for config file generation for repeated and varying user setups. The pseudocode style has a pre-processor command style, e.g.
#define $var = "hello"
#if($var = "hello")
include this text in config file
also include the word $var as an inserted word
#endif
I have managed to get the evaluation of the
#if statements sorted, but the actual definition of the variables is a bit more of a pain.
The reason for not using hashes is to avoid having to process each line of config text, looking for the $variable. Also, using the #if statements with hashes, I'd have to process the $variable and turn it into $list_of_variables->{$variable}.
Does that make sense? Do you agree? :-)