in reply to Re: "infinity" stringification problem in Perl 5.9.0
in thread "infinity" stringification problem in Perl 5.9.0

$ perl -le 'print q(").(100**100**100).q(")' " Inf"

(thanks go to David Dyck for kindly providing this)

Replies are listed 'Best First'.
Re: "infinity" stringification problem in Perl 5.9.0
by Abigail-II (Bishop) on Sep 04, 2003 at 20:49 UTC
    I just synced with the most recent version of 5.9.0, and I cannot reproduce this:
    $ /opt/perl/5.9.0/bin/perl -wle 'print q(").(100**100**100).q(")' "inf" $ /opt/perl/5.8.1/bin/perl -wle 'print q(").(100**100**100).q(")' "inf"

    That means that it's either fixed, or the stringification is done by some library, which works correctly on my platform, and not yours.

    Could you compile with the newest blead and see what happens? If you still get a problem, send a report to p5p, with the output of perl -V.

    Abigail

      the problem is consistent across perl3, perl4, and perl5.* I submitted a bug report to p5p - it is interesting that c programs that printf using "%g" don't have the leading spaces when formatting inf. ps - I'm using libc5
        fine on perl 5.8.0 redhat 9 i386. I get "inf".

      Thank you. I'll ask the user to try the upgrade. This is what I got from him: