go ahead... be a heretic | |
PerlMonks |
Re^4: Change decimal point temporarilyby lima1 (Curate) |
on Aug 02, 2010 at 23:06 UTC ( [id://852565]=note: print w/replies, xml ) | Need Help?? |
The motivation is a feature for the module described in RFC: Text::CSV::R. It is an option to set the decimal point. In Germany for example, it is common for CSV files to use a comma as decimal point and a semicolon as field separator. So I guess a locale approach would be the performance-wise fastest solution. But setting the locale to an arbitrary locale which uses a comma (de_DE, fr_Fr,...) just to change this single parameter seems like hack.
In Section
Seekers of Perl Wisdom
|
|