in reply to Re^3: Formatting question??
in thread Formatting question??
But it is returning me the following error :my $csv = Text::CSV_XS->new ({ binary => 1, eol => "\r\n" }); $csv->print (*STDOUT, $_read_sth->{NAME}); while (my $row = $_read_sth->fetchall_arrayref) { ##Do I need the Dumper function here? as I am supposed to print + multiple resultsets and each has a different heading? $csv->print (*STDOUT, $row); }
Expected fields to be an array ref at /cluster/uapp/app/bin/mytest.pl + line 58. ##Line 58 is this one-->> " $csv->print (*STDOUT, $_read_sth->{NAME} +);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Formatting question??
by Tux (Canon) on Apr 14, 2008 at 21:17 UTC | |
|
Re^5: Formatting question??
by Tux (Canon) on Apr 16, 2008 at 07:10 UTC |