Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Data-Dumper CPAN distribution.

Report information
The Basics
Id: 22766
Status: resolved
Priority: 0/
Queue: Data-Dumper

People
Owner: Nobody in particular
Requestors: ikegami [...] adaelis.com
Cc:
AdminCc:

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



Subject: Seen() recently broken
Download (untitled) / with headers
text/plain 909b
Broken in: After version 2.121_04 (perl 5.8.7) Fixed in: Still broken in version 2.121_08 (perl 5.8.8) Issue: init_refaddr_format() does not necessarily get called before Seen(), causing Seen() to silently fail. The following snippet demonstrates the problem: -- BEGIN -- use Data::Dumper (); my $foo = [1..5]; my $bar = [ [6..10], $foo ]; my $d = Data::Dumper->new([ $bar ], [ '$bar' ]); $d->Seen({ '$foo' => $foo }); print $d->Dump(); -- END -- The following snippet demonstrates a workaround: -- BEGIN -- use Data::Dumper (); my $foo = [1..5]; my $bar = [ [6..10], $foo ]; Data::Dumper::init_refaddr_format() # Workaround if *Data::Dumper::init_refaddr_format{CODE}; # Backwards compat my $d = Data::Dumper->new([ $bar ], [ '$bar' ]); $d->Seen({ '$foo' => $foo }); print $d->Dump(); -- END -- Solution: Have init_refaddr_format() called sooner, such as when the module is loaded.
Download (untitled) / with headers
text/plain 616b
Hi ikegami, On Thu Nov 02 15:47:37 2006, ikegami wrote: Show quoted text
> Broken in: After version 2.121_04 (perl 5.8.7) > Fixed in: Still broken in version 2.121_08 (perl 5.8.8) > > Issue: > init_refaddr_format() does not necessarily get called before Seen(), > causing Seen() to silently fail.
I just picked up Data::Dumper and made the first (developer) release in 5-6 years by pushing the bleadperl version to CPAN (with some backporting fixes). I can't spend huge amounts of time, but if you'd still like to see your problem fixed, this would be the right time to get it done. I'd really appreciate a patch. Cheers, Steffen
Subject: Re: [rt.cpan.org #22766] Seen() recently broken
Date: Tue, 9 Jun 2009 22:24:31 -0400
To: bug-Data-Dumper [...] rt.cpan.org
From: Eric Brine <ikegami [...] adaelis.com>
Download (untitled) / with headers
text/plain 541b
On Sun, Jun 7, 2009 at 4:32 AM, Steffen Mueller via RT < bug-Data-Dumper@rt.cpan.org> wrote: Show quoted text
Show quoted text
> I just picked up Data::Dumper and made the first (developer) release in > 5-6 years by pushing the bleadperl version to CPAN (with some > backporting fixes). I can't spend huge amounts of time, but if you'd > still like to see your problem fixed, this would be the right time to > get it done. I'd really appreciate a patch. >
It has already been fixed. You may close this ticket.
Thanks for following up! Marking the ticket as resolved.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.