Oct 21, 2014, 4:30 AM
Post #1 of 2
- Perl 5.18.2 on Ubuntu 14.04
How to loop through hash ref of hash refs?
- DBI version: 1.63
- SQLite version: 188.8.131.52
I'm using SQLite and the method fetchrow_array() never returns records, so I want to use another method, fetchall_hashref(), which returns a hash ref of hash refs.
My question is: how do I loop through all these keys to get the db key fields and associated data? I'm a bit rusty on hashrefs and perreftut didn't help.