Re: [mp2] $dbh and config values methods

2004-05-28 Thread Perrin Harkins
On Fri, 2004-05-28 at 02:51, Tom Schindl wrote: > As Perrin already said Apache::DBI or once more a Singleton-Class > providing the DBH, although I'd use Apache::DBI because it handles > everthing for you. I typically use them together. Apache::DBI handles the persistence, and the singleton pro

Re: [mp2] $dbh and config values methods

2004-05-27 Thread Tom Schindl
Nathanial P. Hendler wrote: Ok, so I'm convinced that I should be using Log::Log4Perl. I'm using ModPerl::Registry and was wondering if people could share their approaches to configuration variables and database handlers under mp2. I'd like to have a config module, that holds things like: $docum

Re: [mp2] $dbh and config values methods

2004-05-27 Thread Perrin Harkins
On Thu, 2004-05-27 at 14:13, Nathanial P. Hendler wrote: > I'd like to have a config module, that holds things like: > > $document_root= '/var/www/html'; > $images_base_path = $document_root . '/images'; > $images_base_url = '/images'; > > %phrases = ( red=>'This is red', blue=>'this

[mp2] $dbh and config values methods

2004-05-27 Thread Nathanial P. Hendler
Ok, so I'm convinced that I should be using Log::Log4Perl. I'm using ModPerl::Registry and was wondering if people could share their approaches to configuration variables and database handlers under mp2. I'd like to have a config module, that holds things like: $document_root= '/var/www/h