"be consistent" | |
PerlMonks |
Re^2: Textfile to csv with a small twistby jZed (Prior) |
on Aug 25, 2005 at 18:35 UTC ( [id://486682]=note: print w/replies, xml ) | Need Help?? |
Except that the OP specified he/she wants the newlines as part of the data. So instead of trying to hand roll your CSV generator, use Text::CSV_XS or another CSV parsing module that's capable of recognizing and handling embedded newlines, embedded quotes, and other features hand-rolled CSV parsing usually miss.
In Section
Seekers of Perl Wisdom
|
|