in reply to Re^4: Need to create CSV using Text::CSV
in thread Need to create CSV using Text::CSV

It isn't wrong per sé, but why not put the eol attribute in the constructor?

my $csv = Text::CSV ({ binary => 1, eol => "\n", auto_diag => 1 });

To convert CSV to XLS, Text::CSV_XS comes with the csv2xls script in the examples folder, so if XLS is your target format, you could use that.


Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^6: Need to create CSV using Text::CSV
by oldwarrior32 (Sexton) on Jun 18, 2012 at 13:08 UTC

    I did that but didn't worked.