Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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
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 drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2015-07-29 06:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls