[Catalyst] data::dump vs data::dumper

Matt S Trout dbix-class at trout.me.uk
Thu Jul 6 15:08:42 CEST 2006


Chisel Wright wrote:
> On Wed, Jul 05, 2006 at 10:04:05PM +0200, Krzysztof Krzyżaniak wrote:
>> Thanks for the answer. Someone know if Catalyst::Plugin::Dumper will
>> switch to Data::Dump as well (or maybe accept patch for that)?
> 
> Well you could email the author directly, or hope he stumbles across it
> here ;-)
> 
> I'll look into it, if it's the preferred dumping module now.

Catalyst::Plugin::Dumper is ... err ... not sanely architected. It stuffs the 
Catalyst::Log namespace with an extra method, which (a) is a global change 
that could stomp on other code in the same process, and (b) will completely 
fail to work if you replace your logger.

How about a plugin that offers a $c->dump_data($data) method and allows a 
config option to use ::Dumper or ::Dump as preferred.

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list