- or download this
foreach $qbase ( @qbase ) {
if ( uc($qbase) eq 'N' ) {
...
++$ncount;
}
}
- or download this
do { $ncount++ if /n/i } foreach ( @qbase, @sbase );
- or download this
foreach my $idx ( 1..$#query_sequence ) {
if ( $query_sequence[$idx] =~ /n/i && $subj_sequence[$idx] !~ /n/i )
+ {
...
$ncount++;
}
}
- or download this
$ncount = grep { ($qbase[$_] =~ /n/i && $sbase[$_] !~ /n/i) || ($qbase
+[$_] !~ /n/i && $sbase[$_] =~ /n/i) } 1..$#qbase;