2 # Extracts all files from the given zip
5 # perl unzipAll.pl [-j] zipfile.zip
6 # if -j option given, discards paths.
10 use vars qw( $opt_j );
11 use Archive::Zip qw(:ERROR_CODES);
20 usage: perl $0 [-j] zipfile.zip
21 if -j option given, discards paths.
25 my $zip = Archive::Zip->new();
26 my $zipName = shift(@ARGV);
27 my $status = $zip->read( $zipName );
28 die "Read of $zipName failed\n" if $status != AZ_OK;