THIAGO LACERDA ZAGO wrote:
Good morning!

Dean,

I'm using DBD::Chart version that I downloaded from I don't remember exactly 
where, but it is this one: DBD-Chart-0.82.tar.gz.
I read thoroughly the README.txt file and proceeded exactly as its 
recommendations.

The array bond is the size of 20 values length.


The issue is the use of the comma as the decimal separator.
The regex I borrowed to validate float/decimal values doesn't
support it. I also suspect it will confuse Perl, e.g., run:

perl -e "$x = '0,5'; print 124 * $x, qq/\n/;"

and you'll likely get undesired results. Keep in mind that something
like "1,234,567" might also be interpretted as a float/decimal...but
whether its 1234567 or 1234.567 is a bit nebulous as well.

So you have 2 options:

1. Change your numbers to use a period instead of comma for the decimal point.

2 Hack your copy of Chart.pm at line 1663 to change

        ($p=~/^[\-\+]?\d+(\.\d+(E[\-\+]?\d+)?)?$/i));

to

        ($p=~/^[\-\+]?\d+([\.,]\d+(E[\-\+]?\d+)?)?$/i));

However, I can't be certain the latter won't break something
later during evaluation...I'll leave that to you to test.

Dean Arnold
Presicient Corp.

Reply via email to