Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by Tux (Monsignor)
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


Comment on Re^5: Need to create CSV using Text::CSV
Select or Download Code
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 taking refuge in the Monastery: (6)
As of 2014-12-29 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (185 votes), past polls