in reply to Re: How to reconstruct HTTP::Response from file properly
in thread How to reconstruct HTTP::Response from file properly
is what I use to write the data compressed to disk. And this$stored_as_file = Compress::Zlib::memGzip($stored_as_file); open(FILE ,">:utf8", "$file") or die "err: $!"; binmode FILE; print FILE $stored_as_file; close(FILE);
is used to read it back. BTW: I am running Linux (no binmode there, I thought...).local( $/, *FILE ); open(FILE, "<:utf8", "$file") or die "err: $!"; binmode FILE; my $stored_as_file = <FILE>; close(FILE); $stored_as_file = Compress::Zlib::memGunzip($stored_as_file);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to reconstruct HTTP::Response from file properly
by Corion (Patriarch) on May 02, 2007 at 10:34 UTC | |
by isync (Hermit) on May 02, 2007 at 11:18 UTC |