You're trying to populate $columns before you've even populated $row out of the DB. You need to do this within the while() loop (perhaps with a count variable so that it only runs on the first pass). Also, you declare $queryResult, but then later use it in a very strange way.
What is your goal for $queryResult? Is it to add the headers, then append details from every row?
In reply to Re: DBI::CSV using a variable to request columns
by stevieb
in thread DBI::CSV using a variable to request columns
by Sandy_Bio_Perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |