Thread Modul Archive::Zip , aber kein *.zip !!!: Please help... (16 answers)
Opened by Gast at 2004-03-25 11:38

Rambo
 2004-03-25 11:54
#48689 #48689
User since
2003-08-14
803 Artikel
BenutzerIn

user image
also ich mach das so
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
my $zip = Archive::Zip->new();
chdir $log_dest or die "chdir $log_dest: $!";

opendir(DIR,$log_dest) or die "Can't open the current Directory: $!\n";
my @names = readdir(DIR) or die "Unable to read current dir:$!\n";

foreach my $fileName (@names) {
if ($fileName =~ /.LOG/) {
$zip->addFile($fileName);
}
}
my $zip_name = "$Short$srv$zeit_str.zip";
print "\nZipping Files to $zip_name\n\n";
$zip->writeToFileNamed("$zip_name");

vermute das bei dir das opendir fehlt?
fürti rambo

View full thread Modul Archive::Zip , aber kein *.zip !!!: Please help...