in reply to finding matches in the same array
@seq = ('acgt','actg','cggt','cggt','actg'); @num = ('1234','2345','3244','3455','5230'); Wrong algorithm #for( 0..$#seq ){ # $struct{$seq[$_]} ||= $num[$_]; # $struct{$seq[$_]} = ($struct{$seq[$_]}+$num[$_]) / 2 #}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: finding matches in the same array
by RazorbladeBidet (Friar) on Apr 13, 2005 at 17:35 UTC | |
by sh1tn (Priest) on Apr 13, 2005 at 19:42 UTC |