http://qs321.pair.com?node_id=1191113


in reply to Re^6: extract column data
in thread extract column data

You can't just cobble together various examples and hope to make it work. You need to read the documentation and understand what you are working with.

Start by reading the documentation for DBI related to selectall_arrayref as others have already instructed. Then read the documentation for Perl references.