On 07/11/2011 05:16 PM, James B. Muir wrote:
This page describes pretty well how to set up custom configuration
directives; perhaps helpful?

http://perl.apache.org/docs/2.0/user/config/custom.html

I would almost always avoid this kind of configuration and go with an external configuration file. Every project of any decent size will have some scripts or processes that don't run under mod_perl and thus can't use this apache-only configuration.

As for configuration in Perl if I were starting a new project, I'd probably go with something like Config::Any and then pick a backend format. But in practice it probably doesn't matter a whole lot which config module you use as long as it's not tied to Apache. But if you like the apache-style format you can use Config::ApacheFormat which works well.

--
Michael Peters
Plus Three, LP

Reply via email to