http://qs321.pair.com?node_id=469322


in reply to Re: Fast seeking in a large array of hashes to generate a report.
in thread Fast seeking in a large array of hashes to generate a report.

Correct, but this only works for the "eq" operator, not for a regexp (i tried).
update i'll try it, i did not know about Tie::Hash::Regex. i'll let you know the result.

"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.
  • Comment on Re^2: Fast seeking in a large array of hashes to generate a report.

Replies are listed 'Best First'.
Re^3: Fast seeking in a large array of hashes to generate a report.
by robartes (Priest) on Jun 23, 2005 at 09:09 UTC

    Have you looked at Tie::Hash::Regex -- that allows you to look for hash keys with a regular expression. I have no idea as to the performance impact of this though, so you'll have to benchmark it.

    CU
    Robartes-