So, about the module. It's called Config::Auto, and I've written it because I never want to write another config file parser ever again. So, this little baby looks around for a likely-looking config file, sniffs it to work out what sort of format it's in, and has a good shot at parsing it into a Perl data structure. It deals with XML, INI files, Perl files, lists and the more "vague" Unix-style colon-separated, equal-separated and space-separated files.
For instance:
# tortuous.pl
use Config::Auto; use Data::Dumper;
print Dumper(Config::Auto::parse());
This looks around my filesystem, and finds.tortuousrc, which looks like this:
test: foo=bar, baz=quuz
test2: blah
blez: quux
And, with no other prompting, it comes back with:
$VAR1 = {
'test2' => 'blah',
'blez' => 'quux',
'test' => {
'foo' => 'bar',
'baz' => 'quuz'
}
};
Laziness: check.
Impatience: check.
Hubris: check.
Obligatory Ameri-centric ignorance post (Score:1)
But wait, you can't finish it tomorrow, because that's a holiday! <stupid-grin/>
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Parsing (Score:1)
FWIW, I write my config files *in* Perl, and just do/require them. :-) I do like where you're going here, though ...