Re: embedding DB handle in object (was RE: adding key to DB object)

From: Brandon Metcalf (bmetcalf_at_nortel.com)
Date: 03/30/05


Date: Tue, 29 Mar 2005 17:32:18 -0600 (CST)
To: Tim Bunce <Tim.Bunce@pobox.com>

T == Tim.Bunce@pobox.com writes:

 T> On Tue, Mar 29, 2005 at 04:58:53PM -0600, Brandon Metcalf wrote:
 T> > In trying to take your suggesting and embed a DB handle in my own
 T> > object, this is what i've come up with. However, a error is being
 T> > thrown when DBI is trying to destory the handle which I understand.
 T> > What I don't get is how to do this properly.

 T> Embedding is simple has-a relationship not an IS-A. So you don't
 T> want to include any DBI classes in your @ISA:

 T> > @ISA = qw{ Exporter DBI::db };

Excellent! Thanks.

-- 
Brandon