1 2 3
$type = "DNA" if $line =~ m/[ATCG]+/; $type = "RNA" if $line =~ m/[AUCG]+/; $type = "AC" if $line =~ m/[ARNDCEQGHILKMFPSTWYVBZJX]+/;