##
{'name' -> orange,
'fruit' -> yes,
'vegetable' -> no,
'count' -> 50
'id' ->123
},
{
'name' -> squash,
'fruit' -> no,
'vegetable' -> yes,
'count' -> 10
'id' -> 222
}, etc..
####
for ( my $i =0; $i <=$#array1; $i ++) {
foreach my $key (sort keys %{$array2[$i]}){
if ($array1[$i]{$key} ne $$array2[$i]{$key}) {
print "changes";
}
}
}