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: 52617
Status: open
Priority: 0/
Queue: Data-Dumper

People
Owner: Nobody in particular
Requestors: NATG [...] cpan.org
Cc: natg [...] shore.net
AdminCc:

Bug Information
Severity: Wishlist
Broken in:
  • 2.121
  • 2.121_20
  • 2.122
  • 2.123
  • 2.124
  • 2.125
Fixed in: (no value)



CC: natg [...] shore.net
Subject: Freezer should not have to clobber object being dumped
Download (untitled) / with headers
text/plain 1.2k
Freezer methods, as currently defined, operate by modifying the object being dumped. The value returned by the freezer method is ignored. This is okay if you don't need the object after dumping it, but is a real pain if you plan to continue using the object. This is related to bug 27532 (reported by me 2 years ago) and maybe 7009 reported by someone else 5 years ago. We use DD in an object persistence module, Class::AutoDB, and have a patch against 2.121 that fixes the problem (see previous bug report). This was an unfortunate but acceptable workaround when DD development was moribund, but now that active maintenance has resumed, we really need a permanent fix. Please!! The attached test program and output illustrate the problem. The output is from three versions of DD - our patched version of 2.121, an unpatched 2.121, and 2.125. The 'want' cases show how we want it to work (and how it works in our patched version); the 'std' cases show how it works in the standard version. I would be happy to redo our patch for 2.125 and send it to you. (As a heads-up, if you choose to start with our previous patch, I've come to realize that while it works for our needs, it needs a little work to be fully general). Many thanks, Nat Goodman
Download (untitled) / with headers
text/plain 597b
Hi Nat, thank you for your bug report(s). A couple of notes: Data::Dumper is maintained by the perl5-porters and the perl5 repository is considered upstream. I'm merely a proxy for CPAN releases and lack the expertise and more importantly time to come up with significant improvements and bug fixes. If you were to provide a patch to implement a new feature or fix an issue, I'd try to find the time to review it, apply it to core perl, and make a new CPAN release. (Alternatively, I'm sure you would be welcome if you decided to step up as a new Data::Dumper maintainer.) Best regards, Steffen


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.