in reply to Re^3: DBI hashref does not return data in order of query
in thread DBI hashref does not return data in order of query
This is what it returns.my @names = @{ $sth->{NAME} }; my @ordered_values = (); while ( my $row = $sth->fetchrow_arrayref ) { push @ordered_values, [@$row]; } my $cgi = CGI->new; print $cgi->header('text/xml'); print "-- DBI says:\n"; print XMLout( \@ordered_values, NoAttr=>1, RootName=>'dataset', ); print "\n"; print "-- dumper says:\n"; print Dumper(\@names); print Dumper(\@ordered_values);
Thank you for your paitence!<anon> <anon>AAAABUcKyqQhEAABI34stA.4515613</anon> <anon>989</anon> <anon>OQ-OZDN-D-UHMC-UHMC-0939</anon> <anon>MQ-MTBO-T-CCDPN-FTQ-1737</anon> <anon>9895555555</anon> <anon>MI</anon> </anon>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: DBI hashref does not return data in order of query
by erix (Prior) on Oct 29, 2007 at 01:05 UTC | |
by hallikpapa (Scribe) on Oct 29, 2007 at 03:51 UTC |