It stays intact just fine, until you do something like $d->finish; or $d->disconnect;
-----Original Message----- From: Rory Campbell-Lange [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 5:29 AM To: [EMAIL PROTECTED] Subject: can I reuse database connections? I'm new to the list. I'm writing a database interaction module as part of a set of interrelated perl modules. The module is called something like this: my $d = Solution::DB->new(); $d->put('this', 'into', 'that'); $d->get('those', 'where', 'this'); $d->update('those', 'where', 'this', 'with', 'that'); etc... can I make the database connection on new() and keep reusing it until $d is destroyed? Thanks Rory -- Rory Campbell-Lange <[EMAIL PROTECTED]> <www.campbell-lange.net>
