Why reinventing (badly) the wheel?
my $query = qq(SELECT id, col1, col2 FROM some_table); my $results = $dbh->selectall_hashref($query, 1);
Read all the explanation in DBI and DBI Recipes.
In reply to Re^2: Multidimensional Hash
by rnahi
in thread Multidimensional Hash
by wsee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |