in reply to Re^2: scope and undef
in thread scope and undef
In that code you do a foreach on a hashref. I don't think that destroy is actualy looping at all. Shouldn't it be foreach (keys %{$self->{_db_handle}})?
sub DESTROY { my $self = shift; foreach ($self->{_db_handle}) { $self->{_db_handle}{$_}->disconnect; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: scope and undef
by Ryszard (Priest) on Aug 29, 2007 at 07:37 UTC |