in reply to chopping a string into slices - is there a more elegant way to do it?

I'm not a regexp expert but if you can come up with the regexp for getting $ml characters at a time then you can set the array with:
my @result=$s=~/<some regexpr>/;
Is that what you were looking for?
  • Comment on Re: chopping a string into slices - is there a more elegant way to do it?
  • Download Code