Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Fast seeking in a large array of hashes to generate a report.

by jbrugger (Parson)
on Jun 23, 2005 at 08:54 UTC ( #469322=note: print w/ replies, xml ) Need Help??


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.
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-

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://469322]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2015-07-04 02:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls