neversaint has asked for the wisdom of the Perl Monks concerning the following question:
Dear Masters,
I have string of length in multiple of 3.
I have string of length in multiple of 3.
Is there a way I can split it into equal length of 3? Such that in the end I have this array:my $seq = "CTTCGAATT"; # in this case length of 9
In practice I have around 10 million of such string to break. I can always use iteration with 'substr' command. But it's very slow. Is there a faster way to do it?$VAR = ["CTT", "CGA", "ATT"];
---
neversaint and everlastingly indebted.......
neversaint and everlastingly indebted.......
Back to
Seekers of Perl Wisdom