But now I want to print this in csv format: "cheese","olives","beans","carrots".
> Be careful. The CSV formated line can get trickier if it > already contains a comma or a double-quote. For example, > the line > chee,se oli"ves beans carrots > should be translated to > "chee,se","oli""ves",beans,carrots > Note that 'double-quotes' are duplicated and values > containing 'comma' are surrounded by double-quotes. ( This is > the behaviour of the Microsoft Excel CSV file, atleast to my > knowledge ). foreach (@headers) { print "\"$_\","; } > This will print a comma at the end of the line, which is wrong. [sathish] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]