Re: Archive::Zip
From: jay (jsplaine_at_gmail.com)
Date: 02/11/05
- Next message: martinthurn: "WARNING do not install Devel::Fail::MakeTest"
- Previous message: Steven N. Hirsch: "Re: more gcc woes attempting to install Bit-Vector"
- Next in thread: Sisyphus: "Re: Archive::Zip"
- Reply: Sisyphus: "Re: Archive::Zip"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 11 Feb 2005 06:42:35 -0800
I've been banging my head with Archive::Zip for a while. Usually I
have no problem with modules but nothing seems to work with this one.
I've read through
http://search.cpan.org/~nedkonz/Archive-Zip-1.14/lib/Archive/Zip.pod
but still, no luck at all.
I guess I'll just spell out what I need to do and maybe someone can
tell me if this is the right tool or not.
I have a folder on a windows machine that contains several very large
zip files. All I need to do is get into the folder (easy), and somehow
gain access to every member in each of the zip files. I'll be using
some Image::Info to read the header information from each file (they
are all images) which is the end-reason why I need this to work. I can
handle Image::Info, its very easy. But getting accesss to the memebers
of the zip file....
I can't get Archive::Zip to work on One file: I can't seem to digest
the syntax of the module at all.
use Archive::Zip;
use Archive::Zip::MemberRead;
chdir "C:\\UTD_PC\\pictures";
$zip = new Archive::Zip("CHTN_Pix.zip"); # what happens here?
$fh = new Archive::Zip::MemberRead($zip, "aht_dr2.bmp"); # what
happens here?
while (defined($line = $fh->getline())){
print "$fh->input_line_number\n";
}
I'll try to find some examples of successful uses of the module and
report back.
Thanks to anyone that can help : )
jsplaine@uptodate.com
- Next message: martinthurn: "WARNING do not install Devel::Fail::MakeTest"
- Previous message: Steven N. Hirsch: "Re: more gcc woes attempting to install Bit-Vector"
- Next in thread: Sisyphus: "Re: Archive::Zip"
- Reply: Sisyphus: "Re: Archive::Zip"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|