Wanted to thank everyone for responding, first of all. I've made a few changes to the test code based on the suggestions and it looks like the problems have *mostly* cleared. What I'm seeing now is a bottleneck more than anything. One Zip is processed (each Zip contains one server log file), the script slows to a crawl for about 1-3 minutes when the one Zip is done and the next begins, and then it continues whizzing through the text file (I'm roughly gauging the speed by having a line counter updating). I'm still a little puzzled by the bottleneck. My best guess is some sort of buffer size issue. Thanks again!
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"; }

In reply to Re: Archive-Zip memory problems by Accidental Hack
in thread Archive-Zip memory problems by Accidental Hack

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.