In general, I use fetchrow_hashref
(I get around two columns with the same name issue by using alias in the SQL), but I fall back to fetch
(AKA fetchrow_arrayref
) if I need it to be faster. I believe that fetchrow_array
is there for people who don't know how to work with references.