in reply to accessing Apache::DBI 'cached connections'

???

my $DBH || DBI->connect( "dbi:mysql:localhost", "rentsaver", "ro +ot" ) ;

There's your DBI right there. Except it should be my $DBH = DBI-> . . ..

Update: Changed double '==' to a single '=' (oops!)

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated

Replies are listed 'Best First'.
Re: Re: accessing Apache::DBI 'cached connections'
by geektron (Curate) on Jul 21, 2003 at 20:50 UTC
    well, for one it should be a single =, not a double, i'd think.

    i 'borrowed' the line of code out of the _Writing ... _ book. supposedly there's a global $DBH variable.

    i've changed the || to =, but still no stuff in $DBH.

      No, you're reading something wrong. There is no global $DBH variable unless you declare one.

      You're right, should have been a single =.

      ----
      I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
      -- Schemer

      Note: All code is untested, unless otherwise stated