mhd.tahawi has asked for the wisdom of the Perl Monks concerning the following question:
This zip file is about 12 GB and I know that this module has the limitation of zipping no more than 4 GB, but I am trying to see if it can at least be used to access the members of a a +4GB archive. here is the error I am getting:use strict; use Archive::Zip qw( :ERROR_CODES :CONSTANTS ); my $zip = Archive::Zip->new(); unless ($zip->read('/home/mohamad/Desktop/VM/vm.zip') == AZ_OK ){ die 'read error'; } my @files = $zip->memberNames(); print join("\n" , @files) ."\n";
my questions are:at /usr/share/perl5/Archive/Zip.pm line 477. Archive::Zip::_readSignature('IO::File=GLOB(0xb75ae8)', '/home/mohamad/Desktop/VM/vm.zip') called at /usr/share/perl5/Archive/Zip/Archive.pm line 603 Archive::Zip::Archive::readFromFileHandle('Archive::Zip::Archive= +HASH(0xb75c20)', 'IO::File=GLOB(0xb75ae8)', '/home/mohamad/Desktop/VM/vm.zip') called at /usr/share/perl5/Archive/Zip/Archive.pm line 548 Archive::Zip::Archive::read('Archive::Zip::Archive=HASH(0xb75c20) +', '/home/mohamad/Desktop/VM/vm.zip') called at test.pm line 6 read error + at test.pm line 7.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Archive::Zip error when reading a zip file format error: bad signature
by jellisii2 (Hermit) on Aug 01, 2014 at 11:46 UTC | |
by mhd.tahawi (Initiate) on Aug 01, 2014 at 12:55 UTC | |
by ww (Archbishop) on Aug 01, 2014 at 13:52 UTC | |
by mhd.tahawi (Initiate) on Aug 01, 2014 at 14:06 UTC |