Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 cooling their heels in the Monastery: (7)
As of 2014-12-26 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls