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:
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
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
:
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
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} =
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;
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