spewn
Programmer
- May 7, 2001
- 1,034
i have the following code:
Code:
my $dbh2 = DBI->connect('dbi:mysql:dbName','','');
my $sthX1 = $dbh2->prepare("select oneA, oneB, oneC from products where prodID = '321'");
$sthX1->execute;
use constant ONEA => 0;
use constant ONEB => 1;
use constant ONEC => 2;
i want to know if it's crucial that for each instance of the above script, should i always end with:
Code:
$sthX1->finish();
$dbh2->disconnect();
i have been running my site on my comp without and it's fine, so i wonder if they are even needed.
any ideas?
- g