Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^7: Change decimal point temporarily

by ikegami (Pope)
on Aug 03, 2010 at 02:40 UTC ( #852585=note: print w/ replies, xml ) Need Help??

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

ah! In that case,

(my $tmp = $s) =~ s/,/./; $s = $tmp if looks_like_numbers($tmp);

You'd be better of specifying which columns are numeric, though. Text::CSV_XS can even take advantage of that information if you tell it (via types).

Comment on Re^7: Change decimal point temporarily
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://852585]
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: (12)
As of 2015-11-26 09:07 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (696 votes), past polls