|No such thing as a small change|
Fast Way to Split String in to Chunk of Equal Lengthby neversaint (Deacon)
|on Nov 25, 2011 at 07:04 UTC||Need Help??|
neversaint has asked for the wisdom of the Perl Monks concerning the following question:
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:
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?
neversaint and everlastingly indebted.......