Subject: | body should be an array ref or filehandle at /usr/share/perl5/Plack/Middleware/StackTrace.pm line 27 |
Date: | Mon, 29 Aug 2011 21:12:29 -0500 |
To: | bug-Plack-Middleware-Cache [...] rt.cpan.org |
From: | Wes Malone <wesdmalone [...] gmail.com> |
I'm trying out Plack::Middleware::Cache with a minimal setup. It can serve
up a normal request, but as soon as I append the cache parameter, it throws
this error:
body should be an array ref or filehandle at
/usr/share/perl5/Plack/Middleware/StackTrace.pm line 27
use strict; use warnings; use 5.010.0;
use Plack::Builder;
builder {
enable 'Cache', match_url => '[?&]cache',
cache_dir => '/tmp/cache';
mount '/' => sub { [ 200, [], ['hello world'] ] };
};
This is perl, v5.10.1 (*) built for i686-linux-gnu-thread-multi
Plack 0.9951
Plack::Middleware::Cache 0.12
wes@mopps:~$ uname -a
Linux mopps 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011
i686 i686 i386 GNU/Linux