Raster Burn has asked for the wisdom of the Perl Monks concerning the following question:
My goal is to create a configuration file (or, at the extreme, a database) to hold project configuration data for a project that consists of various perl and shell (tcsh) scripts.
For perl, I would usually just create a module consisting of a hash - simple.
For tcsh, I would generally create a file with a bunch of setenvs that I would source - also simple.
So how to I make configuration file that works for both? I suppose I could just write a parser for both languages, but I was wondering if anyone has come up with a more elegant solution.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Language independent configuration
by tilly (Archbishop) on Feb 21, 2008 at 18:04 UTC | |
|
Re: Language independent configuration
by pc88mxer (Vicar) on Feb 21, 2008 at 17:00 UTC | |
|
Re: Language independent configuration
by dwm042 (Priest) on Feb 21, 2008 at 17:31 UTC | |
|
Re: Language independent configuration
by kyle (Abbot) on Feb 21, 2008 at 17:35 UTC | |
|
Re: Language independent configuration
by chromatic (Archbishop) on Feb 21, 2008 at 19:05 UTC |