|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^3: Semicolon delimited to Comma delimitedby afoken (Chancellor) |
| on Apr 24, 2015 at 17:56 UTC ( [id://1124587]=note: print w/replies, xml ) | Need Help?? |
|
Nice idea, but it is not going to work reliably. Quoting the documentation of Text::CSV_XS (by Tux): The import/export from Microsoft Excel is a risky task, according to the documentation in Text::CSV::Separator. Microsoft uses the system's list separator defined in the regional settings, which happens to be a semicolon for Dutch, German and Spanish (and probably some others as well). For the English locale, the default is a comma. In Windows however, the user is free to choose a predefined locale, and then change every individual setting in it, so checking the locale is no solution. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||