in reply to Re: Adding files to ZIP files!
in thread Adding files to ZIP files!
#!/usr/bin/perl -w use strict; use warnings; use Archive::Zip qw( :ERROR_CODES ); my $zipfile = "your_zip.zip"; my $zip = Archive::Zip->new(); unless ( $zip->read( "$zipfile" ) == AZ_OK ) { die 'read error'; } my @files = $zip->memberNames(); print $_, "\n" for @files;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Adding files to ZIP files!
by InfiniteSilence (Curate) on Jan 14, 2012 at 17:52 UTC |