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

Re: Matching values between two arrays of hashes.

by space_monk (Chaplain)
on Oct 31, 2012 at 18:54 UTC ( #1001730=note: print w/ replies, xml ) Need Help??


in reply to Matching values between two arrays of hashes.

Is location_id unique in either the subnets array or filers_info array? If so, why not change the definition of one or both arrays into hashes with the location_id as the key?

I was also going to suggest changing your code to make the outer loop the filers and the inner loop the subnets, but I've forgotten which way round the rules on nested loop performance operate and its time I went home.... :-)


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://1001730]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2014-07-10 23:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (217 votes), past polls