Re: [Catalyst] Setting file handle as the response body generates warnings.

2013-11-21 Thread neil.lunn
On 22/11/2013 12:33 AM, Bill Moseley wrote: On Wed, Nov 20, 2013 at 11:32 PM, neil.lunn > wrote: This approach may work for you is the compressed data is actually in a scalar and not too large. And not too small. YMMV. my $z = read_file "product.json.g

Re: [Catalyst] Setting file handle as the response body generates warnings.

2013-11-21 Thread Bill Moseley
On Wed, Nov 20, 2013 at 11:32 PM, neil.lunn wrote: > > This approach may work for you is the compressed data is actually in a > scalar and not too large. And not too small. YMMV. > > my $z = read_file "product.json.gz"; > > my $io = IO::Scalar->new( \$z ); > $io->seek( -4, 2 ); > $io->read( my $b