From e8ac6f2897c7f1fb67a777cd04b91f48d71c599f Mon Sep 17 00:00:00 2001 From: ambs Date: Sun, 4 Sep 2011 18:24:23 +0100 Subject: [PATCH] Fix example code --- lib/Dancer/Cookbook.pod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Dancer/Cookbook.pod b/lib/Dancer/Cookbook.pod index b3f1322c3..45b1229dc 100644 --- a/lib/Dancer/Cookbook.pod +++ b/lib/Dancer/Cookbook.pod @@ -492,7 +492,7 @@ interpolate in the view (note that for convenience, the request, session, params and vars are automatically accessible in the view, named C, C, C and C) - for example: - before => sub { var time => localtime() }; + before => sub { var time => scalar(localtime) }; get '/hello/:name' => sub { my $name = params->{name};