Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 examining the Monastery: (14)
As of 2014-09-30 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (381 votes), past polls