laziness, impatience, and hubris | |
PerlMonks |
Re: Comparing elements in Array of Hashes (AoH)by gri6507 (Deacon) |
on Jul 18, 2012 at 14:16 UTC ( [id://982440]=note: print w/replies, xml ) | Need Help?? |
I am guessing that you are comparing each hash element across both AoH, one element at a time. This can be slow because it requires accessing each element and comparing each element. Instead of doing this, you could create some new indication for each array element (i.e. join('', %{$AoH[$i]}) and then compare those indicators.
In Section
Seekers of Perl Wisdom
|
|