I'd like to know how others handle the configuration of their tool sets.
My group maintains a set of tools that are configured with configuration files written in Perl. Each configuration file contains one or more hashes which can then be used in each tool.
# configs_topic.pl
package Configs;
%some_hash = (
key1 => "value1",
key2 => {
key3 => 'value2',
}
);
# my tool
require "configs_topic.pl";
my $value = $Configs::some_hash{key1};
A few of my many problems:
1. The configuration files are becoming way too huge. It seems like we try to configure everything. How much is too much?
2. If you change the configuration file data structure, you may affect multiple tools and not just the one you're updating.