in reply to Re^3: text::csv output help
in thread text::csv output help

@rows is supposed to contain a 2-d array? Can you give an example of the format? The error I get: "Expected fields to be an array ref at line x". Thx, Dave

Replies are listed 'Best First'.
Re^5: text::csv output help
by ikegami (Patriarch) on Dec 01, 2010 at 02:57 UTC

    print expects a file handle and a reference to an array of field values.

    my @row = qw( 1 2 3 4 5 'hello world'); $csv->print($fh, \@row);