in reply to "infinity" stringification problem in Perl 5.9.0

Could you provide us with a short code fragment that produces the different stringification under the 5.9 and 5.8 tracks? Then I'll pass it on to p5p.

Abigail

  • Comment on Re: "infinity" stringification problem in Perl 5.9.0

Replies are listed 'Best First'.
Re: Re: "infinity" stringification problem in Perl 5.9.0
by fglock (Vicar) on Sep 04, 2003 at 13:38 UTC
    $ perl -le 'print q(").(100**100**100).q(")' " Inf"

    (thanks go to David Dyck for kindly providing this)

      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

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