in reply to Re^2: Change decimal point temporarily
in thread Change decimal point temporarily
Or... I suppose if we have a digit either size of a '.' then it's probably a number with a decimal point:
ALthough... I don't quite understand what you're trying to do - surely if you're parsing a CSV file containing numbers with decimal points you'd rather they weren't commas?$s = "123.45"; $s =~ s/(?<=\d)\.(?=\d)/,/;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Change decimal point temporarily
by lima1 (Curate) on Aug 02, 2010 at 23:06 UTC | |
by jeffa (Bishop) on Aug 02, 2010 at 23:30 UTC |
In Section
Seekers of Perl Wisdom