From: Jess Robinson Date: Mon, 5 Feb 2007 14:23:22 +0000 (+0000) Subject: Fix overload example X-Git-Tag: v0.08010~185 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0472cc0463f566c7d8d1b1fdf887fe6f60024560;p=dbsrgits%2FDBIx-Class.git Fix overload example --- diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index 2f93a77..4192ee3 100644 --- a/lib/DBIx/Class/Manual/Cookbook.pod +++ b/lib/DBIx/Class/Manual/Cookbook.pod @@ -586,7 +586,7 @@ module. To make an object stringify itself as a single column, use something like this (replace C with the column/method of your choice): - use overload '""' => 'foo', fallback => 1; + use overload '""' => sub { shift->name}, fallback => 1; For more complex stringification, you can use an anonymous subroutine: