I really can't tell what you are doing there. What I noticed is:
  1. You are "split(ing) the entry type from the actual verbage to be searched for" for each and every log file entry found.
    Better is to do that once and for every ini file entry outside the loop
  2. You are using some "strange constructs" like
    if (condition) { next LOOP; } else { # main part to do }
    instead of the "cleaner" solution without else.
    But I don't think this will add to the running time
  3. Something I only use in java and never in perl found here: if (length($entry) == 0)why not simply: if (not $entry) or even if ($entry eq "")? But again: Not that runtime issue, i think.
I'd suggest to fix the entry preparation first.

Update: Thanks to ikegami for reminding me of 0 ;-)

$\=~s;s*.*;q^|D9JYJ^^qq^\//\\\///^;ex;print

In reply to Re: Pls help optomize - ksh version 60% faster! by Skeeve
in thread Pls help optomize - ksh version 60% faster! by coreolyn

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.