$ perl -le' @strings = qw/ GNNTCGANNTT GAATCGNNNTT GANNCGNNNNN /; for ( @strings ) { push @results, []; unshift @{ $results[ -1 ] }, length() - pos() while /N+/g; } print "@$_" for @results; ' 2 8 2 0 7
In reply to Re: Identifying Reverse Position of Specific Character in a String
by jwkrahn
in thread Identifying Reverse Position of Specific Character in a String
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |