Accidental Hack has asked for the wisdom of the Perl Monks concerning the following question:
use Archive::Zip; use Archive::Zip::MemberRead; ...set up my variables and readdir to get list of Zips... foreach $file (@files) { my $zip = new Archive::Zip("$source/$file"); my $member = $zip->memberNamed('WebTrends.log'); my $fh = $member->readFileHandle(); while (defined($line = $fh->getline())) { ...process each line and write some values to a file... } $fh->close(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Archive-Zip memory problems
by Accidental Hack (Acolyte) on Dec 20, 2004 at 20:15 UTC | |
by redhotpenguin (Deacon) on Dec 20, 2004 at 20:51 UTC | |
|
Re: Archive-Zip memory problems
by Jaap (Curate) on Dec 20, 2004 at 16:57 UTC | |
by Accidental Hack (Acolyte) on Dec 20, 2004 at 17:10 UTC | |
|
Re: Archive-Zip memory problems
by KeighleHawk (Scribe) on Dec 20, 2004 at 19:21 UTC | |
|
Re: Archive-Zip memory problems
by redhotpenguin (Deacon) on Dec 20, 2004 at 18:55 UTC | |
|
Re: Archive-Zip memory problems
by noslenj123 (Scribe) on Dec 20, 2004 at 19:20 UTC |