Mark,
I think I see the problem. You are not returning the modified $self. You are returning the connection of opendb's instance of $self.
sub opendb { my $self=shift; $self->{_dbh}=DBI->connect(...); # return $self->{_dbh}; # Should return $self here return $self; }
Update: RMGir's responce is absolutely correct. Before posting this I should have asked if the self was blessed.
Kristofer A. Hoch
In reply to Re: DESTROY and DBI
by krisahoch
in thread DESTROY and DBI
by mce
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |