http://qs321.pair.com?node_id=1204468


in reply to Re^2: Unzipping and extracting file only with Archive::Zip
in thread Unzipping and extracting file only with Archive::Zip

use strict; use warnings; use Archive::Zip qw( :ERROR_CODES :CONSTANTS ); use Data::Dumper; my $zipFile = "myzip.zip"; my $archiveDir = '/fileDirectory'; my $zip = Archive::Zip->new(); my $status = $zip->read("$archiveDir/$zipFile"); die "Read of $zip failed\n" if $status != AZ_OK; $zip->extractMemberWithoutPaths('info/home/houses.txt', '/zips/houses. +txt'); #$zip->extractMember('info/home/houses.txt', '/zips/houses.txt'); # ei +ther works for me