in reply to Re^3: Searching parallel arrays.
in thread Searching parallel arrays.
the other sequences are missed because of the numeric sort problem L~R noticed. The sort should be:foreach my $number (@sorted_numbers) { push @recent, [ $number, $from_whence{$number} ]; shift @recent if @recent > 4; check_and_handle_contig(\@recent) if @recent == 4; }
with these changes in, it seems to find them all. Thanks for the test cases :-)my @sorted_numbers = sort { $a <=> $b } map { @{$_} } @source_data;
|
|---|