[Israel.pm] Unzip on the fly (with LWP?)

Roman M. Parparov romm at empire.tau.ac.il
Tue Jun 8 07:16:57 PDT 2004


Good afternoon,

What would be the most elegant way to retrieve a zip file from
a WWW url and unzip it on the fly.

1) The best result would be getting the unzipped data WITHOUT
writing any file, let' say, into an array of strings separated by
newline.
2) The second best result would be writing the final extracted file
without writing the zip.
3) The third best result would be writing the zip without writing
the final extracted file.
4) The fourth way is the ugliest and includes writing both the
zip and the extracted file.

I assume LWP::UserAgent and Archive::Zip are my tools, but their
best way of usage escapes me.

Thanks in advance,
			Roman.

-- 
Roman M. Parparov - NASA EOSDIS project node at TAU technical manager.
Email: romm at empire.tau.ac.il		   http://www.nasa.proj.ac.il/
Phone/Fax: +972-(0)3-6405205 (work),         +972-(0)51-34-18-34 (home)
----------------------------------------------------------------------
The economy depends about as much on economists as the weather does on
weather forecasters.
                -- Jean-Paul Kauffmann



More information about the Perl mailing list