in reply to Re: Testing for a string value within an array
in thread Testing for a string value within an array

If you need to keep the original order, is there any overhead to using Tie:LLHash over using the array? I'm guessing that Tie::LLHash must be using an array, but just provides an interface to work with only the hash?
  • Comment on Re^2: Testing for a string value within an array

Replies are listed 'Best First'.
Re^3: Testing for a string value within an array
by revdiablo (Prior) on May 03, 2005 at 23:45 UTC
    is there any overhead to using Tie:LLHash over using the array?

    It depends on what you mean by "overhead". Certainly, there's overhead involved in loading a module. There's overhead involved in installing a module. Depending on how the module is implemented, there's likely overhead involved in using the module. Whether that overhead is worth it or not depends on a lot of factors. But personally, I would stick with a plain dual hash/array approach unless there was a specific reason not to.