Server IP : 192.168.23.10 / Your IP : 18.219.248.129 Web Server : Apache System : Linux echo.premieradvertising.com 5.14.0-362.8.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 7 14:54:22 EST 2023 x86_64 User : rrrallyteam ( 1049) PHP Version : 8.1.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF Directory (0755) : /usr/share/doc/perl-Archive-Zip/examples/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
# Copies a zip file to another. # Usage: # perl copy.pl input.zip output.zip # $Revision: 1.4 $ use Archive::Zip qw(:ERROR_CODES); die "usage: perl copy.pl input.zip output.zip\n" if scalar(@ARGV) != 2; my $zip = Archive::Zip->new(); my $status = $zip->read($ARGV[0]); die("read $ARGV[0] failed: $status\n") if $status != AZ_OK; $status = $zip->writeToFileNamed($ARGV[1]); die("writeToFileNamed $ARGV[1] failed: $status\n") if $status != AZ_OK;