Jonathan Vanasco wrote:

> but storing pnotes is just
>
> handler 1
> $r->pnotes( 'database_connect'=> $database_connect );
>
> handler 2
> my $database_connect = $r->pnotes('database_connect');


The main problem with this is that if you loose your db connection somehow, you
wouldn't know until it bombed out on you unless you constantly check it
everytime before you use it.

If you create a simple sub in your handler (or handler base class if you use
multiple handlers) that calls DBI->connect() and use Apache:BI, it will take
care of all that checking for you and make sure you have a connection (if one
can be made).

--
Michael Peters
Developer
Plus Three, LP