in reply to [untitled node, ID 254219]
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);
|
|---|