in reply to splitting a sequence using unpack
As for the format of unpack, it tells unpack what's in the string (second argument), and how to "unpack" it. And 'a' means, "an ASCII character". The '3' means, three of them. The star means, as many as needed. So, '(a3)*' means, split the following string into pieces of three.
Alternatively (and what I would have done, being more of a regex person than an unpack one), you could use a regex:
@triplets = $seq =~ /[actg]{3}/g;
|
|---|