in reply to Re^2: Why a reference, not a hash/array?
in thread Why a reference, not a hash/array?

Try:
my @data = map { $_->[0] } @{ $sth->fetchall_arrayref };