anadem has asked for the wisdom of the Perl Monks concerning the following question:
To try that you need two files: ".\perlzip.pl" and "\alan\dummy.txt"# this is perlzip.pl use strict; use Archive::Zip; my @files_to_get = ( { files => "perlzip.pl" }, # in current directory { files => "\\alans\\dummy.txt" }, # in another dir ); my $zip = Archive::Zip->new(); # new zip object for packaging foreach my $href ( @files_to_get ) { my $file = $href->{"files"}; print( " adding $file\n" ); $zip->addFile( $file ); } $zip->writeToFileNamed( "MyZip.zip" ); exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Archive::Zip problem with Windows Explorer
by rjt (Curate) on Jul 20, 2013 at 02:56 UTC | |
|
Re: Archive::Zip problem with Windows Explorer
by pmqs (Friar) on Jul 20, 2013 at 16:02 UTC |