Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Matching values between two arrays of hashes.

by CountZero (Bishop)
on Oct 31, 2012 at 20:48 UTC ( #1001743=note: print w/ replies, xml ) Need Help??


in reply to Matching values between two arrays of hashes.

Dump that data into a database and use 'SELECT * FROM subnets, filersinfo WHERE subnets.location_id = filersinfo.location_id' to get all the records where location_id matches in both tables.

I tried it with an SQLite database and it got the info in less than a second.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics


Comment on Re: Matching values between two arrays of hashes.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2014-09-20 10:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (158 votes), past polls