in reply to looping hash
@keys = @{$sth2->{NAME}}; print join "\t", @keys; print "\r"; while ($record = $sth->fetchrow_hashref()) { print join "\t", map { $record->{$_} } @keys; print "\r"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: looping hash
by ibra (Novice) on Mar 07, 2012 at 16:33 UTC |