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