erons has asked for the wisdom of the Perl Monks concerning the following question:
I have 2 best scores, and for each best score I have 3 possiblities: "unique match", "best_match+TE" and "best_match-TE". Then I need to compare/check the agreement(or otherwise) between each of the possibilities in both "best scores". I have tried this, but I am not sure if I am in right direction
use strict; if($best_X <= 110 && $block1 <=110 || $best_Y <= 110 && $block2 <= 110 + )<p>{#keep counts of matches to check for unique match $counter++;}</p> if($counter == 1){ $tq = "unique_match" }elsif($best_X <= 100 && $block1 <= 100)</p>{ $pp = "best_match+TE" }elsif($best_X <= 100 && $position2 < 5)</p>{ if($block2 <= 50){ $pp2 = "best_match-TE"}<p> }else{next} if($best_Y <= 100 && $block1 >= 70){ $pz = "best_match+TE" }<p>elsif($best_Y <= 100 && $position1 >= 50)<p>{ if($block1 <= 50){ $pz2 = "best_match-TE"} }else{next}<p> } if($pp eq $pz){ $resH = "best_match+TE"; }<p>elsif($nTE2 eq $pp2 || $nTE2 eq $pz2){ $resH = "best_match -TE" }else{$resH = $tq}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I need help with a bunch of "if/elsif statements (comparisons)"
by wfsp (Abbot) on Jan 27, 2010 at 17:19 UTC | |
|
Re: I need help with a bunch of "if/elsif statements (comparisons)"
by jethro (Monsignor) on Jan 27, 2010 at 16:41 UTC | |
by erons (Initiate) on Jan 27, 2010 at 16:51 UTC | |
by jethro (Monsignor) on Jan 27, 2010 at 22:55 UTC | |
|
Re: I need help with a bunch of "if/elsif statements (comparisons)"
by JavaFan (Canon) on Jan 27, 2010 at 16:45 UTC | |
|
Re: I need help with a bunch of "if/elsif statements (comparisons)"
by Anonymous Monk on Jan 27, 2010 at 16:20 UTC | |
by erons (Initiate) on Jan 27, 2010 at 16:36 UTC | |
by Anonymous Monk on Jan 27, 2010 at 16:26 UTC |