in reply to substr is behaving differently with small vs large strings
my $rawseq = <CONTIG>; # my $goodseq = editcontig($rawseq); $rawseq =~ tr/ \t\n0-9//d; # now use $rawseq instead of $goodseq [download]