in reply to Improving the efficiency of this piece of code

I don't have an answer to your question, bladx, but here's 2 ways that I've done something similar:     cheers,
    Don
    striving for Perl Adept
    (it's pronounced "why-bick")
  • Comment on Re: Improving the efficiency of this piece of code (slightly OT, somewhat similar approach)