If you just want one column then
my @rows = @{ $dbh->selectcol_arrayref("SELECT id FROM blah") };
Otherwise do a full $dbh->selectall_arrayref as salvadors suggests or use the full prepare, execute, fetchrow syntaxes like you were doing originally.
For information on these syntaxes and more read up on the DBI docs.
In reply to Re: Re: Weird DBI/Array Use
by repson
in thread Weird DBI/Array Use
by madhatter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |