in reply to Archive-Zip memory problems
use Archive::Zip; use Archive::Zip::MemberRead; ...a few other variables set up here... @files = qw(ex041201.zip ex041202.zip ex041203.zip ex041204.zip); foreach $file (@files) { open(LOG, ">>$log_terms") || die "Cannot open $log_terms. $!"; $zip = new Archive::Zip("$source/$file"); $text = new Archive::Zip::MemberRead($zip, "WebTrends.log"); while (defined($line = $text->getline())) { @splitline = split / /, $line; ...do some processing... undef(@splitline); } } undef($text); undef($zip); close(LOG); } print "\a"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Archive-Zip memory problems
by redhotpenguin (Deacon) on Dec 20, 2004 at 20:51 UTC |