/usr/share/doc/perl-Archive-Zip/examples
NameSizeModeActions
calcSizes.pl9480644editdlrm
copy.pl4520644editdlrm
extract.pl8960644editdlrm
mailZip.pl16130644editdlrm
mfh.pl6400644editdlrm
readScalar.pl7500644editdlrm
selfex.pl15690644editdlrm
unzipAll.pl5610644editdlrm
updateTree.pl8220644editdlrm
updateZip.pl8920644editdlrm
writeScalar.pl6140644editdlrm
writeScalar2.pl6130644editdlrm
zip.pl6660644editdlrm
zipcheck.pl10100644editdlrm
zipGrep.pl14510644editdlrm
zipinfo.pl44660644editdlrm
ziprecent.pl77060644editdlrm
ziptest.pl18010644editdlrm
Edit: /usr/share/doc/perl-Archive-Zip/examples/extract.pl (896B)
#!/usr/bin/perl -w # Extracts the named files into 'extractTest' subdir # usage: # perl extract.pl [-j] zipfile.zip filename [...] # if -j option given, discards paths. # # $Revision: 1.5 $ # use strict; my $dirName = 'extractTest'; use vars qw( $opt_j ); use Archive::Zip qw(:ERROR_CODES); use Getopt::Std; $opt_j = 0; getopts('j'); if (@ARGV < 2) { die <new(); my $zipName = shift(@ARGV); my $status = $zip->read($zipName); die "Read of $zipName failed\n" if $status != AZ_OK; foreach my $memberName (@ARGV) { print "Extracting $memberName\n"; $status = $opt_j ? $zip->extractMemberWithoutPaths($memberName) : $zip->extractMember($memberName); die "Extracting $memberName from $zipName failed\n" if $status != AZ_OK; }