Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 meditating upon the Monastery: (6)
As of 2015-04-26 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (485 votes), past polls