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.