Perl

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • infinity is formatted with leading spaces e.g. "Inf"

    2 answers - 2418 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Wed, May 10, 2006 at 06:59:29PM -0700, Yitzchak Scott-Thoennes wrote:
    Wed, May 10, 2006 at 06:41:31PM -0700, David Dyck wrote:
    Wed, 10 May 2006 at 18:08 -0700, Steve Peters via RT
    <perlbug-followup@p:

    >From: Steve Peters via RT <perlbug-followup (AT) perl (DOT) org>
    >To: "Dyck, David" <david.dyck (AT) fluke (DOT) com>
    >Date: Wed, 10 May 2006 18:08:02 -0700
    >Subject: [perl #23731] infinity is formatted with leading spaces e.g.

    " Inf"
    >
    >>[dcd - Fri 07 14:22:14 2005]:
    >>

    [dcd - Thu Sep 04 17:46:28 2003]:
    I tried to use CPAN's Set::Infinite, which seems to
    care about the string representation of infinity.
    >>
    >>Just to follow up - I don't get the test failures
    >>from Set::Infinite any more, as they worked around it
    >>0.5306

    >fix bug in test "inf" -"$inf". Thanks Kingpin
    >>
    >>Will perl get test cases or will it remain platform dependent?
    >>

    >
    >Are you still getting the odd results with
    >
    >perl -wle 'print q(").(100**100**100).q(")'
    >" Inf"
    >
    >If so, may I ask what Linux you are running?

    This is what I get today
    dd:dcd$ perl -wle 'print q(").(100**100**100).q(")'
    " Inf"
    Linux dd 2.4.33-pre3 #1 Mon May 1 07:22:46 PDT 2006 i686
    as you can see, my libc is 'older' :-)
    libdl.so.1 =/lib/libdl.so.1 (0x4000d000)
    libm.so.5 =/lib/libm.so.5 (0x40010000)
    libc.so.5 =/lib/libc.so.5 (0x40019000)
    dd:dcd$ ls -l /lib/libc.so.5
    lrwxrwxrwx 1 root root 14 May 13 1998 /lib/libc.so.5 -
    libc.so.5.4.44*
    dd:dcd$ ls -lL /lib/libc.so.5
    -rwxr-xr-x 1 bin bin 1874736 Feb 1 1998 /lib/libc.so.5*
    I remember someone reporting this before with an old libc.
    They got it working with an evil hack involving setting d_Gconvert
    to an expression including strtok.
    This would be that ticket :). Just making sure there is a
    vicitm^Wtester still available to work with :)
    Steve Peters
    steve (AT) fisharerojo (DOT) org
    PGP SIGNATURE
    Version: GnuPG v1.4.2.2 (GNU/Linux)
    ILVtXKo44xG2yYRV0=
    =/um4
    PGP SIGNATURE
  • No.1 | | 1757 bytes | |

    Wed, 10 May 2006 at 18:08 -0700, Steve Peters via RT <perlbug-followup@p:

    From: Steve Peters via RT <perlbug-followup (AT) perl (DOT) org>
    To: "Dyck, David" <david.dyck (AT) fluke (DOT) com>
    Date: Wed, 10 May 2006 18:08:02 -0700
    Subject: [perl #23731] infinity is formatted with leading spaces e.g.
    " Inf"

    >[dcd - Fri 07 14:22:14 2005]:
    >>

    [dcd - Thu Sep 04 17:46:28 2003]:
    I tried to use CPAN's Set::Infinite, which seems to
    care about the string representation of infinity.
    >>

    >Just to follow up - I don't get the test failures
    >from Set::Infinite any more, as they worked around it
    >0.5306
    >fix bug in test "inf" -"$inf". Thanks Kingpin
    >>

    >Will perl get test cases or will it remain platform dependent?
    >>

    >

    Are you still getting the odd results with

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

    If so, may I ask what Linux you are running?

    This is what I get today

    dd:dcd$ perl -wle 'print q(").(100**100**100).q(")'
    " Inf"

    Linux dd 2.4.33-pre3 #1 Mon May 1 07:22:46 PDT 2006 i686

    as you can see, my libc is 'older' :-)
    libdl.so.1 =/lib/libdl.so.1 (0x4000d000)
    libm.so.5 =/lib/libm.so.5 (0x40010000)
    libc.so.5 =/lib/libc.so.5 (0x40019000)

    dd:dcd$ ls -l /lib/libc.so.5
    lrwxrwxrwx 1 root root 14 May 13 1998 /lib/libc.so.5 -libc.so.5.4.44*

    dd:dcd$ ls -lL /lib/libc.so.5
    -rwxr-xr-x 1 bin bin 1874736 Feb 1 1998 /lib/libc.so.5*
  • No.2 | | 2060 bytes | |

    Wed, May 10, 2006 at 06:41:31PM -0700, David Dyck wrote:
    Wed, 10 May 2006 at 18:08 -0700, Steve Peters via RT
    <perlbug-followup@p:

    >From: Steve Peters via RT <perlbug-followup (AT) perl (DOT) org>
    >To: "Dyck, David" <david.dyck (AT) fluke (DOT) com>
    >Date: Wed, 10 May 2006 18:08:02 -0700
    >Subject: [perl #23731] infinity is formatted with leading spaces e.g.

    " Inf"
    >
    >>[dcd - Fri 07 14:22:14 2005]:
    >>

    [dcd - Thu Sep 04 17:46:28 2003]:
    I tried to use CPAN's Set::Infinite, which seems to
    care about the string representation of infinity.
    >>
    >>Just to follow up - I don't get the test failures
    >>from Set::Infinite any more, as they worked around it
    >>0.5306

    >fix bug in test "inf" -"$inf". Thanks Kingpin
    >>
    >>Will perl get test cases or will it remain platform dependent?
    >>

    >
    >Are you still getting the odd results with
    >
    >perl -wle 'print q(").(100**100**100).q(")'
    >" Inf"
    >
    >If so, may I ask what Linux you are running?


    This is what I get today

    dd:dcd$ perl -wle 'print q(").(100**100**100).q(")'
    " Inf"

    Linux dd 2.4.33-pre3 #1 Mon May 1 07:22:46 PDT 2006 i686

    as you can see, my libc is 'older' :-)
    libdl.so.1 =/lib/libdl.so.1 (0x4000d000)
    libm.so.5 =/lib/libm.so.5 (0x40010000)
    libc.so.5 =/lib/libc.so.5 (0x40019000)

    dd:dcd$ ls -l /lib/libc.so.5
    lrwxrwxrwx 1 root root 14 May 13 1998 /lib/libc.so.5 -
    libc.so.5.4.44*

    dd:dcd$ ls -lL /lib/libc.so.5
    -rwxr-xr-x 1 bin bin 1874736 Feb 1 1998 /lib/libc.so.5*

    I remember someone reporting this before with an old libc.

    They got it working with an evil hack involving setting d_Gconvert
    to an expression including strtok.

Re: infinity is formatted with leading spaces e.g. "Inf"


max 4000 letters.
Your nickname that display:
In order to stop the spam: 9 + 8 =
QUESTION ON "Perl"

EMSDN.COM