Use IO::File to make the filehandle. Not a glob as from what I understand the handle needs a print method in order for this to work.my @columns = (qw/what ever the items are for each columns/); $csv = Text::CSV_XS->new(); # $io is a filehandle from IO::File which has a print method. A glob d +oes not. $status = $csv->print($io, \@columns);
In reply to Re: Populating a CSV file with Text::CSV_XS
by BMaximus
in thread Populating a CSV file with Text::CSV_XS
by master_son
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |