X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FCookbook.pod;h=5d56a469589c69ed0655ab69dbbbf2737d0ef3bd;hb=02a53b81a62d7559d61f5dffbc57be0713c05129;hp=32951682f14d08dd73c55a5fd0bd17ae92fb146e;hpb=51ef281821755c4e9cfdd3decfa50a7d724eb9f6;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Manual/Cookbook.pod b/lib/Catalyst/Manual/Cookbook.pod index 3295168..5d56a46 100644 --- a/lib/Catalyst/Manual/Cookbook.pod +++ b/lib/Catalyst/Manual/Cookbook.pod @@ -21,7 +21,7 @@ placing a C call in the C action. If you're tired of removing and adding this all the time, you can easily add a condition. For example: - die "Testing" if $c->param->{dump_info}; + die "Testing" if $c->params->{dump_info}; =head2 Disable statistics @@ -127,6 +127,7 @@ Controller: for my $field ( $c->req->upload ) { + my $upload = $c->req->upload($field); my $filename = $upload->filename; my $target = "/tmp/upload/$filename";