|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re: Semicolon delimited to Comma delimitedby Tux (Canon) |
| on Apr 23, 2015 at 12:29 UTC ( [id://1124389]=note: print w/replies, xml ) | Need Help?? |
|
Disregarding the Microsoft issues with localized list-separator characters, as described here, and given that you already have exported to CSV, be it with another separator than the required ,, the solution is extremely simple, using Text::CSV_XS: $ cat bad.csv a;b;c 1;2;3 ;4; "Føó";"Hēłŀõ Ẇőŕļđ"; $ perl -C3 -MText::CSV_XS=csv -we'csv (in => "bad.csv", sep => ";")' a,b,c 1,2,3 ,4, Føó,"Hēłŀõ Ẇőŕļđ", Enjoy, Have FUN! H.Merijn
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||