|more useful options|
Given the regularity with which this problem comes uparound here, I concluded that this problem is used as a sample question for those learning to use perl in the Bioinformatics field.
I have this mental picture of a lecturer somewhere (or several somewheres:), giving the question out as homework, running through the myriad variations of regex and substr solutions that result and then writing 3 lines of perl (including use Bioperl;) to demonstrate the "right way" to do it:).
As problems go, it is a nice, clean, self-contained, real-world problem with a million possible solutions just ideal for teaching purposes.
Examine what is said, not who speaks.
1) When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
2) The only way of discovering the limits of the possible is to venture a little way past them into the impossible
3) Any sufficiently advanced technology is indistinguishable from magic.
Arthur C. Clarke.