Re: Tied hash numeric values are rounded off under Perl v5.8.6

2005-09-06 Thread Rafael Garcia-Suarez
Yitzchak Scott-Thoennes wrote: However, the bug I thought was there indeed was for scalar magic: sub TIESCALAR { bless {} } sub FETCH { my $x=3.3; 1 if 0+$x; $x } tie $h, main; print $h; prints 3 and should IMO print 3.3. The following fixes it, though I haven't run full tests yet:

Tied hash numeric values are rounded off under Perl v5.8.6

2005-09-02 Thread Mandalemula, Rajesh
Hello, We recently upgraded Perl to v5.8.6 and noticed a behavioral change w.r.t tied hashes using Tie::IxHash (Tie::Hash::Indexed also) numeric hash values. The same version of the module works fine under Perl v5.6.1 Problem: The attached program below rounds off the numeric hash

Re: Fw: Tied hash numeric values are rounded off under Perl v5.8.6

2005-09-02 Thread Yitzchak Scott-Thoennes
Trimmed the cc list a little. On Thu, Sep 01, 2005 at 10:10:36PM -0700, Yitzchak Scott-Thoennes wrote: On Thu, Sep 01, 2005 at 09:58:49PM -0700, Yitzchak Scott-Thoennes wrote: I wouldn't really like to venture what the correct fix is, epecially as I'm still consfused about the meanings of

Fw: Tied hash numeric values are rounded off under Perl v5.8.6

2005-09-01 Thread Marcus Holland-Moritz
: Date: Thu, 1 Sep 2005 13:52:59 +0530 From: Mandalemula, Rajesh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], Mandalemula, Rajesh [EMAIL PROTECTED] Subject: Tied hash numeric values are rounded off under Perl v5.8.6 Hello, We recently upgraded Perl to v5.8.6 and noticed a behavioral

Re: Fw: Tied hash numeric values are rounded off under Perl v5.8.6

2005-09-01 Thread Dave Mitchell
On Thu, Sep 01, 2005 at 10:25:24PM +0200, Marcus Holland-Moritz wrote: I think this is a bug in Perl itself that was introduced with 5.8.0 and is still present. It can be cut down to this code: #!perl -wl use Tie::Hash; tie %h, Tie::StdHash; $a = 3.55; $_ = $a + 0; $h{a} =

Re: Fw: Tied hash numeric values are rounded off under Perl v5.8.6

2005-09-01 Thread Yitzchak Scott-Thoennes
On Thu, Sep 01, 2005 at 10:19:11PM +0100, Dave Mitchell wrote: On Thu, Sep 01, 2005 at 10:25:24PM +0200, Marcus Holland-Moritz wrote: I think this is a bug in Perl itself that was introduced with 5.8.0 and is still present. It can be cut down to this code: #!perl -wl use Tie::Hash;

Re: Fw: Tied hash numeric values are rounded off under Perl v5.8.6

2005-09-01 Thread Yitzchak Scott-Thoennes
On Thu, Sep 01, 2005 at 09:58:49PM -0700, Yitzchak Scott-Thoennes wrote: I wouldn't really like to venture what the correct fix is, epecially as I'm still consfused about the meanings of the public verses private N/I/P flags. I *think* I understand it, and magic values shouldn't get