my $arrayref = $dbh->selectcol_arrayref(qq/ SELECT $myColumn FROM $myTable /); my @array = @{$arrayref};
Note that the returned data structure is an array reference rather than an array, hence the second line to dereference the data structure. If you are not familiar with this terminology, you can read up on references in perlref.
perl -e 's&&rob@cowsnet.com.au&&&split/[@.]/&&s&.com.&_&&&print'
In reply to Re: Just another DBI question.
by rob_au
in thread Just another DBI question.
by xtype
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |