for $hash_ref ( @$officialannotation ) { while (my $start, $stop) = each %$hash_ref ) { for $hash_ref2 ( @$prodigalannotation) { while (my $start1, $stop2) = each %$hash_ref2 ) {