Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2015-11-26 12:33 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (698 votes), past polls