I have two AoH @AoH_curr and @AoH_prev. There are about 10,000 rows in each array
eg@AoH_curr[$i]{'node'} @AoH_curr[$i]{'link'} @AoH_curr[$i]{'load'} @AoH_prev[$j]{'node'} @AoH_prev[$j]{'link'} @AoH_prev[$j]{'load'}
I would like to compare the node and link of @AoH_curr and @AoH_prev and if they are equal print out the load value for current and previous.
I need a way to do this. I have tried nested loops but it is taking way to long. Any ideas on a fast algorithm.
In reply to Comparing elements in Array of Hashes (AoH) by hmadhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |