July 12th, 2013, 11:30 PM
Using Archive::zip to uncompress a file
I have been using the below code which has been working fine so far :
$zip = Archive::zip->new();
zipname = "abc.zip";
$status = $zip->read($zipname); die "Failed\n" if $status != AZ_OK;
But recently I am seeing errors saying
format error : bad signature cannot unzip file with read 9, write 0.
Any suggestions ?
July 16th, 2013, 06:09 AM
What do you get if you try to access the members?
my $zip = Archive::Zip->new( "path_to_zip/abc.zip" );
my @member_names = $zip->memberNames;
Last edited by 1DMF; July 16th, 2013 at 06:13 AM.