in reply to Comparing elements in Array of Hashes (AoH)

Try it this way:

my %lookup = map{ join( $;, $_->{node}, $_->{link} ) => $_->{load} } @ +AoHCurr; exists $lookup{ join $;, $_->{node}, $_->{link} } and print "node:$_->{node} link:$_->{link} load: $_->{load} :", $lookup{ join $;, $_->{node}, $_->{link} } for @AoHPrev;

That should work out to be roughly 2000 times faster than nested loops for a 10k X 10k cross-sompare.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?