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

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

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



CC: Chris Cavnor <ccavnor [...] systemsbiology.org>
Subject: Want freezer methods for some classes but not others
Date: Mon, 11 Jun 2007 07:43:38 -0700
To: bug-Data-Dumper [...] rt.cpan.org
From: "Nathan (Nat) Goodman" <natg [...] shore.net>
If a freezer method is defined for a given Dumper, the code assumes all classes can execute a method by that name. In my application, I want to dump some objects in a special way, while letting Dumper do its usual thing on other objects. A simple example shows the current behavior: ---------- use Data::Dumper; $x=bless {a=>1},'AnyClass'; $Data::Dumper::Freezer='any_method'; print Dumper($x); # fails. would prefer that Dumper ignore custom freezer if not defined ---------- Working patch files are available at http://isbiology.cvs.sourceforge.net/isbiology/AutoTools/AutoDB/patches/ We first reported this problem in Sep 2004. It looks to be related to bug 7009 reported by someone else. Any chance you can/will fix this? I'm in the process of cleaning up the package I distribute that needs the patch. If you aren't going to fix it, I'll bite the bullet and include the patched version (renamed) in the package I distribute. No big deal, but I hate to branch someone else's code unnecessarily. Thanks a lot for all you do! I really appreciate your hard work in making Perl such an immense force!! Best, Nat Goodman Senior Research Scientist Institute for Systems Biology
From: dekimsey [...] gmail.com
On Mon Jun 11 10:45:14 2007, natg@shore.net wrote: Show quoted text
> If a freezer method is defined for a given Dumper, the code assumes
all Show quoted text
> classes can execute a method by that name. In my application, I want
to Show quoted text
> dump some objects in a special way, while letting Dumper do its usual > thing on other objects. > > A simple example shows the current behavior: > > ---------- > use Data::Dumper; > $x=bless {a=>1},'AnyClass'; > $Data::Dumper::Freezer='any_method'; > print Dumper($x); # fails. would prefer that Dumper ignore custom > freezer if not defined > ---------- > > Working patch files are available at >
http://isbiology.cvs.sourceforge.net/isbiology/AutoTools/AutoDB/patches/ Show quoted text
> > We first reported this problem in Sep 2004. It looks to be related to > bug 7009 reported by someone else. > > Any chance you can/will fix this? I'm in the process of cleaning up
the Show quoted text
> package I distribute that needs the patch. If you aren't going to
fix Show quoted text
> it, I'll bite the bullet and include the patched version (renamed) in > the package I distribute. No big deal, but I hate to branch someone > else's code unnecessarily. > > Thanks a lot for all you do! I really appreciate your hard work in > making Perl such an immense force!! > > Best, > Nat Goodman > Senior Research Scientist > Institute for Systems Biology >
We are also running into this problem at our site, I haven't had the time to go develing into the Dumper code and create a fix for it. Would you be willing to supply/upload your patch? I know there must be others who'd be interested.
CC: Chris Cavnor <ccavnor [...] systemsbiology.org>
Subject: Re: [rt.cpan.org #27532] Want freezer methods for some classes but not others
Date: Sun, 01 Jul 2007 12:49:43 -0700
To: bug-Data-Dumper [...] rt.cpan.org
From: "Nathan (Nat) Goodman" <natg [...] shore.net>
Greetings

The patch is available on CPAN at http://search.cpan.org/src/CCAVNOR/Class-AutoDB-0.092/patches/.  I've cc'ed my colleague, Chris Cavnor, who did the work and may be able to answer any technical questions.

All the best,
Nat

Danny via RT wrote: Show quoted text
<URL: http://rt.cpan.org/Ticket/Display.html?id=27532 >

On Mon Jun 11 10:45:14 2007, natg@shore.net wrote:
  
If a freezer method is defined for a given Dumper, the code assumes 
    
all 
  
classes can execute a method by that name. In my application, I want 
    
to 
  
dump some objects in a special way, while letting Dumper do its usual 
thing on other objects.

A simple example shows the current behavior:

----------
use Data::Dumper;
$x=bless {a=>1},'AnyClass';
$Data::Dumper::Freezer='any_method';
print Dumper($x);  # fails. would prefer that Dumper ignore custom 
freezer if not defined
----------

Working patch files are available at 

    
http://isbiology.cvs.sourceforge.net/isbiology/AutoTools/AutoDB/patches/
  
We first reported this problem in Sep 2004. It looks to be related to 
bug 7009 reported by someone else.

Any chance you can/will fix this?  I'm in the process of cleaning up 
    
the 
  
package I distribute that needs the patch. If you aren't going  to 
    
fix 
  
it, I'll bite the bullet and include the patched version (renamed) in 
the package I distribute. No big deal, but I hate to branch someone 
else's code unnecessarily.

Thanks a lot for all you do!  I really appreciate your hard work in 
making Perl such an immense force!!

Best,
Nat Goodman
Senior Research Scientist
Institute for Systems Biology

    
We are also running into this problem at our site, I haven't had the 
time to go develing into the Dumper code and create a fix for it.  
Would you be willing to supply/upload your patch?  I know there must be 
others who'd be interested.