On 08/06/07, Helge Kreutzmann <[EMAIL PROTECTED]> wrote:
As a minimum, perllocale(1) should be updated, i.e. the example should
become:
#!/usr/bin/perl

use POSIX qw(strtod setlocale LC_NUMERIC);

setlocale LC_NUMERIC, "";

$n = 5/2;   # Assign numeric 2.5 to $n

$a = " $n"; # Locale-dependent conversion to string

print "half five is $n\n";       # Locale-dependent output

printf "half five is %g\n", $n;  # Locale-dependent output

print "DECIMAL POINT IS COMMA\n"
    if $n == (strtod("2,5"))[0]; # Locale-dependent conversion


I don't know if you had time to discuss with upstream where the bug
lies, but at least this way documentation and implementation are in
sync.

For now, I've updated the docs as change #31363 in bleadperl.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to