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

Matt S Trout dbix-class at trout.me.uk
Thu Jul 6 16:55:45 CEST 2006


Chisel Wright wrote:
> On Thu, Jul 06, 2006 at 02:08:42PM +0100, Matt S Trout wrote:
>> 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.
> 
> Fair enough - this is the first piece of feedback I've had on the
> module.
> I was sort-of workng on the basis "It does what I want, and no-one's
> complained". I'm kinda surprised that it appears to be used so much.

I didn't realise it existed until recently when somebody asked me about using 
it in the tutorial and I went "ack! not until it's been rewritten"

>> How about a plugin that offers a $c->dump_data($data) method and allows a 
>> config option to use ::Dumper or ::Dump as preferred.
> 
> Sounds sane. Sounds like I have some thinking/work to do for 0.0.3. :)

Sorry :)

> Chisel - distracted after taking photos at a lingerie fashion show

Bastard.

-- 
      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