[Catalyst] Re: Catalyst-Plugin-Compress-Zlib

Marcus Ramberg marcus.ramberg at gmail.com
Fri Jul 27 17:33:25 GMT 2007


On 7/26/07, A. Pagaltzis <pagaltzis at gmx.de> wrote:
> * Bill Moseley <moseley at hank.org> [2007-07-26 19:30]:
> > Looking at an existing version I hacked I see I did something a
> > bit more crude:
>
> Crude is better in Perl. Handle-like things come in so many
> shapes that testing for them is futile at best, stupid at worst.
>
>     my $body = $c->response->body;
>     eval { local $/; $body = <$body> } if ref $body;
>     die "Response body is an unsupported kind of reference" if ref $body;
>
ok, looks good. Please to be testing Compress-Zlib from trunk, and I
will do another release soon.

-- 
With regards
Marcus Ramberg



More information about the Catalyst mailing list