wanadlan has asked for the wisdom of the Perl Monks concerning the following question:
use Archive::Zip; my $zipname = 'file.zip'; my $destinationDirectory = '/temp/'; my $zip = Archive::Zip->new($zipname); foreach my $member ($zip->members) { next if $member->isDirectory; (my $extractName = $member->fileName) =~ s{.*/}{}; $member->extractToFileNamed("$destinationDirectory/$extractName"); }
edited: Sun Jan 19 00:31:10 2003 by jeffa - removed br tags and added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how i can running this achive::zip program in CGI?
by poj (Abbot) on Jan 18, 2003 at 11:11 UTC | |
by Anonymous Monk on Jan 21, 2003 at 08:48 UTC |