in reply to Re: CGI::App::Plugin::DBH + variable names
in thread CGI::App::Plugin::DBH + variable names

but when I used
<c>$dbh = $self->dbh('Server1') if ( uc($dbName) eq 'Server1' );<c>
It works, I don't see the docs use dbh_config in the examples for this.
  • Comment on Re^2: CGI::App::Plugin::DBH + variable names

Replies are listed 'Best First'.
Re^3: CGI::App::Plugin::DBH + variable names
by Anonymous Monk on Aug 11, 2009 at 09:45 UTC
    ??

    1. Module is CGI::Application::Plugin::DBH , not CGI::App::Plugin::DBH
    2. It works, I don't see the docs use dbh_config in the examples for this.

      Look at CGI::Application::Plugin::DBH

Re^3: CGI::App::Plugin::DBH + variable names
by james2vegas (Chaplain) on Aug 18, 2009 at 18:39 UTC
    That code 'works' in that it doesn't do anything since uc($dbName) eq 'Server1' is always false.