Gossamer Forum
Home : General : Perl Programming :

Re: [Wil] $sth->fetchall_array

Quote Reply
Re: [Wil] $sth->fetchall_array In reply to
I'm not sure if it's the fastest way but it works. I ended up using:

Code:
my $data = $sth->fetchall_arrayref({});
$sth->finish();

foreach (@$data) {
$res{$_->{Email}} = $_->{Email};
}

$DBH->disconnect();

return %res;

Last edited by:

RedRum: Sep 28, 2001, 1:48 PM
Subject Author Views Date
Thread $sth->fetchall_array Paul 11049 Sep 27, 2001, 2:41 PM
Post Re: [RedRum] $sth->fetchall_array
tandat 10896 Sep 27, 2001, 7:48 PM
Thread Re: [RedRum] $sth->fetchall_array
Wil 10958 Sep 28, 2001, 2:11 AM
Post Re: [Wil] $sth->fetchall_array
Paul 10916 Sep 28, 2001, 3:31 AM
Thread Re: [Wil] $sth->fetchall_array
Paul 10889 Sep 28, 2001, 1:48 PM
Post Re: [RedRum] $sth->fetchall_array
Wil 10849 Sep 29, 2001, 6:59 AM