in reply to locale savvy comma as decimal operator
Output: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
2,2 4,4 6,6
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: locale savvy comma as decimal operator
by tphyahoo (Vicar) on May 26, 2005 at 08:24 UTC |