in reply to Splitting a String into n-character parts, without using a regex

I might approach it like this:
push(@row, substr($string, 0, $len, '')) while length $string;
Of course, that still uses a while, but I suspect it'll still be faster than a regex.
  • Comment on Re: Splitting a String into n-character parts, without using a regex
  • Download Code