/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/unzipAll.pl (561B)
#!/usr/bin/perl -w # Extracts all files from the given zip # $Revision: 1.3 $ # usage: # perl unzipAll.pl [-j] zipfile.zip # if -j option given, discards paths. # use strict; use vars qw( $opt_j ); use Archive::Zip qw(:ERROR_CODES); use Getopt::Std; $opt_j = 0; getopts('j'); if (@ARGV < 1) { die <new(); my $zipName = shift(@ARGV); my $status = $zip->read($zipName); die "Read of $zipName failed\n" if $status != AZ_OK; $zip->extractTree();