in reply to DBI selectall_arrayref
It looks like you are selecting the literal values 'Field 1', 'Field 2' etc when you should be selecting columns.
I don't have time right now to test, but try this line:
my $rs = $dbh->selectall_arrayref("SELECT [" . join("],[", @fromFields +) . "] FROM $fromTable");
Notice I've replaced your apostrophes with square brackets.
|
|---|