Yeah, your post is over two years old, but through the magic of SuperSearch I just stumbled across it. Some of what you describe above I wrote as Config::Simple::Inherit, which then got subsumed in Config::Simple::Entended (which I still maintain, I guess, until the author of Config::Simple wants to incorporate the new methods I use regularly in his module).
Anyway, it handles the inheritance of configurations for you. And Extended also offers a method which will parse an incoming url to determine which configuration you want to use so a single installation of the code base can host multiple instances of an application simply by reading different configuration files. Long range I will eventually also add support for heredoc to ::Extended, as well, so it can be used to feed copy into a webform.
Check it out if you think this might be useful. Its been uploaded to CPAN.
-- Hugh
if( $lal && $lol ) { $life++; }
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.