in reply to How Do I Get the Last 20 Nucleotides In A FASTA Subsequence?

I may be missing something... but wouldn't using the Perl built-in substr, i.e. a simple substr($seq, -20) do the job?

(A negative offset returns that many chars counting from the end of the string.)