Skip Menu |

This queue is for tickets about the Plack-Middleware-EasyHooks CPAN distribution.

Report information
The Basics
Id: 127862
Status: new
Priority: 0/
Queue: Plack-Middleware-EasyHooks

People
Owner: Nobody in particular
Requestors: bohica [...] ntlworld.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.02
Fixed in: (no value)



Subject: example code in synopsis is wrong
In the synopsis: use Plack::Builder; my $app = ...; builder { enable 'Plack::Middleware::EasyHooks', before => sub { $_[0]->{start_time} = time(); }, finalize => sub { my $time = time() - $_[0]->{start}; <------- should be start_time warn "Request took $time seconds"; }; $app; } -- Martin J. Evans Wetherby, UK