Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Hash-FieldHash CPAN distribution.

Report information
The Basics
Id: 58030
Status: resolved
Priority: 0/
Queue: Hash-FieldHash

People
Owner: Nobody in particular
Requestors: djerius [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: object stringification triggered on older perls.
Hi, I have a class which overloads the stringify operator. If I insert an object reference into a Hash::FieldHash managed hash on perl 5.8.8 the stringification function is called. Under Perl 5.10.0 the stringification function is not called. I've attached a short example. Is it possible to avoid the stringification? Thanks, Diab
Subject: driver
Download driver
application/octet-stream 251b

Message body not shown because it is not plain text.

Hi, Diab. On Tue Jun 01 18:46:45 2010, DJERIUS wrote: Show quoted text
> Hi, > > I have a class which overloads the stringify operator. If I insert an > object reference into a Hash::FieldHash managed hash on perl 5.8.8 the > stringification function is called. Under Perl 5.10.0 the > stringification function is not called. I've attached a short example. > > Is it possible to avoid the stringification?
Unfortunately it seems impossible. I have read the perl source code (hv.c), and then saw that perl triggers stringification before calling tie handlers. I can do nothing about it :( Regards, -- Goro Fuji (gfx) GFUJI at CPAN.org
On Wed Jun 02 00:31:53 2010, GFUJI wrote: Show quoted text
> Hi, Diab. > > On Tue Jun 01 18:46:45 2010, DJERIUS wrote:
> > Hi, > > > > I have a class which overloads the stringify operator. If I insert an > > object reference into a Hash::FieldHash managed hash on perl 5.8.8 the > > stringification function is called. Under Perl 5.10.0 the > > stringification function is not called. I've attached a short example. > > > > Is it possible to avoid the stringification?
> > Unfortunately it seems impossible. I have read the perl source code > (hv.c), and then saw that perl triggers stringification before calling > tie handlers. I can do nothing about it :( > > Regards,
That's indeed unfortunate. Thanks for looking into this.