Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Writing to csv file

by roboticus (Chancellor)
on Mar 02, 2011 at 10:46 UTC ( [id://890948]=note: print w/replies, xml ) Need Help??


in reply to Writing to csv file

maestromani:

You should put quotes around the data items that contain commas. Unfortunately, there are too many CSV file formats. So rather than trying to fix it yourself, you should try using a module such as Text::CSV to generate your file. It has a few optional parameters that can help you adapt your CSV file to whatever variation used by the software that reads your file.

Note: In the future, you should provide your code, example data and example output to make it easier to help you.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-23 13:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found