in reply to Just another DBI question.
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'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Just another DBI question.
by xtype (Deacon) on Jan 19, 2002 at 03:52 UTC |