in reply to checking values of variables
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: checking values of variables
by fionbarr (Friar) on Aug 12, 2013 at 19:21 UTC | |
| [reply] [d/l] |
by davido (Cardinal) on Aug 12, 2013 at 20:13 UTC | |
It would still be more fun if we were checking for valid config values, rather than just the existence of a value, but at minimum, this seems to be what you're asking for. If you are checking for validity also, then make CONFIG_ITEMS a hashref such that:
...or...
And then...
...for example. There's probably a module for this, but it's not that hard to implement from scratch for a trivial use. As things get more complex, start looking for a well tested solution. Dave | [reply] [d/l] [select] |
by Anonymous Monk on Aug 13, 2013 at 00:08 UTC | |
| [reply] | |