[EMAIL PROTECTED] (William R Ward) writes:
> I just created a new version (1.43) of Number::Format, and it passes
> all the tests on my system, but the cpan-testers rejected it.  The
> problem is probably related to the locale system, and for some reason
> the locale test failed on the tester's machine.  [...]
> Thanks for your help!  You can get the module from this URL:
> http://www.bayview.com/download/Number-Format-1.43.tar.gz

I figured it out - it was due to a change in Perl 5.6 that caused
numbers when converted to strings by Perl to have the current locale's
decimal separator inserted.  In other words, the number 123.45 in the
German locale is "123,45" in string form.  Prior versions of Perl
would convert it to "123.45" no matter what locale.  I was using
split(/\./) to separate the integer from the decimal parts, and
converted that to use int() to get the integer, and substr() to get
the decimal.  It works, and version 1.44 is now on my website and soon
to be on CPAN.

--Bill.

-- 
William R Ward            [EMAIL PROTECTED]          http://www.wards.net/~bill/
-----------------------------------------------------------------------------
     If you're not part of the solution, you're part of the precipitate.

Reply via email to