in reply to Re^2: question on OO design and object composition
in thread question on OO design and object composition

Huh? So you want to share around a DBI handle, but you can't use connect_cached because each object has its own user/pass. If that's the case, how can you share a DBI handle in the first place?

-sam

  • Comment on Re^3: question on OO design and object composition

Replies are listed 'Best First'.
Re^4: question on OO design and object composition
by Qiang (Friar) on Mar 23, 2008 at 22:12 UTC
    i am using connect_cached().

    my problem is that i have to pass a dbh(supposedly one for each webapp under mod_perl) to the company::api by way of calling $c = company::api->new($dbh). then in company::api, i have to pass this $dbh to other company:: modules

    sorry if i wasn't clear on this.