in reply to Search an array ref of array refs

Could do:
my $table = $sth->fetchall_hashref('row_id'); print "Row 14 contains $table->{14}{num_bananas} bananas";
http://search.cpan.org/doc/TIMB/DBI-1.20/DBI.pm#fetchall_hashref

andy.

Replies are listed 'Best First'.
Re: Re: Search an array ref of array refs
by bittondb (Novice) on Nov 05, 2001 at 07:42 UTC
      No probs. fetchall_hashref() is new, so you might need to update your DBI, and maybe DBD, modules.

      andy.