Skip to content

Commit

Permalink
Fixed typos in HashRefInflator example
Browse files Browse the repository at this point in the history
  • Loading branch information
castaway committed Oct 30, 2006
1 parent a4c8f60 commit 4bbcc5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/DBIx/Class/Manual/Cookbook.pod
Expand Up @@ -1114,7 +1114,7 @@ C<inflate_result>:
my ($me, $rest) = @_;

return { %$me,
map { ($_ => mk_hash(@{$rest->{$_}})) } keys %$rest }
map { ($_ => mk_hash(@{$rest->{$_}})) } keys %$rest
};
}

Expand All @@ -1127,7 +1127,7 @@ C<inflate_result>:
$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
}
Expand Down

0 comments on commit 4bbcc5e

Please sign in to comment.