RE: Best approach to store Application Configuration

2011-07-11 Thread James B. Muir
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 -James From: Jerry Pereira [mailto:online.je...@gmail.com] Sent: Monday, July 11, 2011 5:08 PM To: modperl@perl.apache.org Subject: Best

RE: Best approach to store Application Configuration

2011-07-11 Thread Szekeres, Edward
Database Flatfile on disk (look up Storable module on how to save/load binary representation of PERL structures), works well if you want to have an instant structure, but flatfiles need location on the server. I use both regularly From: Jerry Pereira [mailto:online.je...@gmail.com] Sent:

Re: Best approach to store Application Configuration

2011-07-11 Thread Michael Peters
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

Re: Best approach to store Application Configuration

2011-07-11 Thread McCarrell, Jeff
Hi Jerry. I went through a couple of different approaches before settling on using YAML files to describe configuration. There are several nice properties of YAML IMO, not least of which is arbitrary nesting so the config can closely match the software being configured. Here is a sanitized

Re: Best approach to store Application Configuration

2011-07-11 Thread Fred Moyer
On Mon, Jul 11, 2011 at 2:23 PM, Michael Peters mpet...@plusthree.com wrote: 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

Re: Best approach to store Application Configuration

2011-07-11 Thread Jerry Pereira
please correct me if I am wrong, I should be using tool like YAML/Config::General for application configuration storage and reteieval, and load them on startup using startup.pl script? That would mean i will have to store the name of configuration file some where (probabaly in mod_perl

RE: Best approach to store Application Configuration

2011-07-11 Thread James B. Muir
: James B. Muir; Jerry Pereira; modperl@perl.apache.org Subject: Re: Best approach to store Application Configuration On Mon, Jul 11, 2011 at 2:23 PM, Michael Peters mpet...@plusthree.com wrote: On 07/11/2011 05:16 PM, James B. Muir wrote: This page describes pretty well how to set up custom

Re: Best approach to store Application Configuration

2011-07-11 Thread McCarrell, Jeff
@perl.apache.orgmailto:modperl@perl.apache.org Subject: Re: Best approach to store Application Configuration please correct me if I am wrong, I should be using tool like YAML/Config::General for application configuration storage and reteieval, and load them on startup using startup.plhttp://startup.pl script? That would

Re: Best approach to store Application Configuration

2011-07-11 Thread Michael Peters
On 07/11/2011 05:41 PM, Jerry Pereira wrote: please correct me if I am wrong, I should be using tool like YAML/Config::General for application configuration storage and reteieval, and load them on startup using startup.pl http://startup.pl script? Yes. That would mean i will have to store

Re: Best approach to store Application Configuration

2011-07-11 Thread Keywan Ghadami
Hi Jerry, I use JSON:XS in my framework, but before writing a hole framework from the scratch, think about using catalyst. regards keywan Am 11.07.2011 23:07, schrieb Jerry Pereira: Hi All, I am new to mod_perl (a java developer). I would like to know the best approach to store and