Syntactic Confectionery Delight | |
PerlMonks |
Re: Writing to csv fileby roboticus (Chancellor) |
on Mar 02, 2011 at 10:46 UTC ( [id://890948]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|