OK, I figured out the problem. I use Perl 5.005_03 still, so it
didn't occur on my system. I built and installed Perl 5.6.1 to test
this and was able to reproduce your error. In Perl 5.6.1 apparently
the string representation of a number pays attention to the current
locale setting. Thus, the number 123.45 in the German locale is
"123,45" when you convert it to a string in Perl. My module tried to
do a split/\./ on this, and failed. I fixed it to use int() to get
the integer part, and substr() based on the length of that + 1 to find
the decimal part. This assumes that all locales use a 1-character
decimal separator, which I believe to be valid.
I don't use arithmetic because it introduces weird errors often. I
don't want any .000000001 or .9999999 being added to the values.
I created a version 1.44 and will be uploading it to CPAN in a few
moments. For now it can be had at:
http://www.bayview.com/download/Number-Format-1.44.tar.gz
Thanks again for all your help.
--Bill.
--
William R Ward - [EMAIL PROTECTED] Bay View Consulting Services
http://www.bayview.com/~wrw/ 2860 Porter St PMB 408
phone +1 831/479-4072 Soquel, CA 95073-2419 USA
PGP Key 0x2BD331E5; public key at http://www.bayview.com/~wrw/pubkey.txt