Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: Need to create CSV using Text::CSV

by Tux (Abbot)
on Jun 18, 2012 at 06:41 UTC ( #976768=note: print w/ replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://976768]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2016-08-24 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (349 votes). Check out past polls.