go ahead... be a heretic | |
PerlMonks |
Re^2: Code Misses a Replacementby radiantmatrix (Parson) |
on Jul 07, 2005 at 22:17 UTC ( [id://473261]=note: print w/replies, xml ) | Need Help?? |
I would agree that the dump may do many interesting things when it goes to CSV, including escaping certain chars. I suggest the following code (which I use a variation of to convert Semi-Colon SV files to CSV files):
This gets used as: c2t.pl file1.out {file2.out} {...}, and writes the results to file1.out.dshield, etc. By using the Text::CSV_XS module, you will be certain of processing CSV and Tab-SV files correctly. Though it's more code, it performs quite well and it will likely save you grief in the future.
Larry Wall is Yoda: there is no try{}
The Code that can be seen is not the true Code
In Section
Seekers of Perl Wisdom
|
|