in reply to Script Executes Very Slowly

The only "efficiency" factor I see is that you are unpacking/splitting the @flab lines each time you read from <LONG_LIST>.

You should get that outside the loop, and perhaps save the contents of the split @flab into a hash, with the 'name' as the key.

This will enable you to lookup $hash{$sTab[1]} , instead of your current regex compare.

Please do not post word-processor mutilated, un-compilable code. That makes identifying your intent difficult.

        Profanity is the one language all programmers know best.

Replies are listed 'Best First'.
Re^2: Script Executes Very Slowly
by doubleqq (Acolyte) on Aug 04, 2014 at 19:33 UTC
    Just a quick update: read the array into a hash and made some changes to the lookup. Using Benchmark, the execute time is.... 4 seconds! Results verified and everything looks copacetic. If I could I would buy you a beer.
      If I could I would buy you a beer.

      Or maybe Donate? (hint, hint)

Re^2: Script Executes Very Slowly
by doubleqq (Acolyte) on Aug 04, 2014 at 19:13 UTC
    That must be it! I couldn't tell where I was performing a redundant step. Also you're suggestion of a hash is top of my list to do now. Apologies for the terrible formatting, I tried salvage it best I could, but thank you for the feedback nonetheless.