oruse DBI; . . . my $res = $sth->fetchall_arrayref(); # Returns array ref with all resu +lt rows which are array refs too. for my $row (@$res) { for my $value (@$row) { print "$value " } print "\n"; }
my $res = $sth->fetchall_arrayref({}); # Returns array ref with result + rows which are hash refs. for my $row (@$res) { for my $key (%$row) { print "$$row{$key} " } print "\n"; }
--------------------------------
SV* sv_bless(SV* sv, HV* stash);
In reply to Re: Hash from DBI
by nite_man
in thread [untitled node, ID 254219]
by Samn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |