Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a gzipped csv file that that was downloaded using WWW::Mechanzie, it can be retrieved by doing:
I don't care about any buffering because it's not a large file.
How can I unzip the $gzipped_csv_file and store it in $gunzipped without writing to disk?my $gzipped_csv_file = $mech->content;
I don't care about any buffering because it's not a large file.
my $gzipped_csv_file = $mech->content; # uncompress gzip here # store uncompressed file in $gunzipped here my @file = split "\n", $gunzipped;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Uncompress Gzip File From WWW::Mechanize
by jasonk (Parson) on Apr 10, 2009 at 00:29 UTC | |
Re: Uncompress Gzip File From WWW::Mechanize
by CoVAX (Beadle) on Feb 09, 2015 at 01:49 UTC |
Back to
Seekers of Perl Wisdom