in reply to locale savvy comma as decimal operator

You may want to have a look at my module Number::Format::Calc.
use Number::Format::Calc ( -thousands_sep=>"", -decimal_point=>","); use strict; use warnings; while (<DATA>) { my $n = new Number::Format::Calc ($_); print $n * 2, "\n"; } __DATA__ 1,1 2,2 3,3
Output:
2,2 4,4 6,6


holli, /regexed monk/

Replies are listed 'Best First'.
Re^2: locale savvy comma as decimal operator
by tphyahoo (Vicar) on May 26, 2005 at 08:24 UTC
    This sounds good. I'm going to give it a try.