in reply to Re: Reading and producing variable lists (w/o hashes!)
in thread Reading and producing variable lists (w/o hashes!)
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.#define $var = "hello" #if($var = "hello") include this text in config file also include the word $var as an inserted word #endif
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? :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Reading and producing variable lists (w/o hashes!)
by roboticus (Chancellor) on May 01, 2009 at 11:11 UTC | |
|
Re^3: Reading and producing variable lists (w/o hashes!)
by wfsp (Abbot) on May 01, 2009 at 11:25 UTC |