Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^4: Change decimal point temporarily

by lima1 (Curate)
on Aug 02, 2010 at 23:06 UTC ( #852565=note: print w/ replies, xml ) Need Help??

in reply to Re^3: Change decimal point temporarily
in thread Change decimal point temporarily

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.

Comment on Re^4: Change decimal point temporarily
Re^5: Change decimal point temporarily
by jeffa (Chancellor) on Aug 02, 2010 at 23:30 UTC

    I consider using a comma instead of a decimal like that to be a hack in and of itself ... so, when in Rome. ;)


    (the triplet paradiddle with high-hat)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://852565]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-10-25 16:50 GMT
Find Nodes?
    Voting Booth?

    For retirement, I am banking on:

    Results (146 votes), past polls