[CDBI] Class::DBI and Apache::Session - Why does it work?

Matt S Trout dbix-class at trout.me.uk
Sat Dec 3 01:23:14 GMT 2005


On Sat, Dec 03, 2005 at 02:04:19AM +0100, Brad Bowman wrote:
> Matt S Trout wrote:
> >On Sat, Dec 03, 2005 at 12:39:27AM +0100, Brad Bowman wrote:
> >>I've started writing one.  To be continued...
> >
> >Consider supporting other serialisers as well - the key one being YAML ... 
> 
> YAML doesn't seem to have hooks like Storable, so I can't see
> how to alter the behaviour of YAML::Dump($object).

Bugger, it appears it isn't documented. The methods involved are yaml_dump
and yaml_load; an example of injecting such functions (for serialising
XML::LibXML objects) can be found in -

http://dev.catalyst.perl.org/repos/bast/trunk/BAST-DXE/lib/BAST/Handler/xml.pm

Look for "# EVIL HACK OF DOOM. Makes YAML work." :)

-- 
     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 ClassDBI mailing list