From: Jess Robinson Date: Mon, 30 Oct 2006 14:21:53 +0000 (+0000) Subject: Fixed typos in HashRefInflator example X-Git-Tag: v0.07003~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4bbcc5ed6862381ac721da40e48f4a6ff9a6bdce;p=dbsrgits%2FDBIx-Class.git Fixed typos in HashRefInflator example --- diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index 2377fc5..ab58aaa 100644 --- a/lib/DBIx/Class/Manual/Cookbook.pod +++ b/lib/DBIx/Class/Manual/Cookbook.pod @@ -1114,7 +1114,7 @@ C: my ($me, $rest) = @_; return { %$me, - map { ($_ => mk_hash(@{$rest->{$_}})) } keys %$rest } + map { ($_ => mk_hash(@{$rest->{$_}})) } keys %$rest }; } @@ -1127,7 +1127,7 @@ C: $rs->result_class('My::HashRefInflator'); my $datahashref = $rs->next; - foreach my $col (keys $datahashref) { + foreach my $col (keys %$datahashref) { if(!ref($datahashref->{$col}) { # It's a plain value }