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

That's work for unpack

$s = 'abcdefg'; $ml = 3; @result = unpack 'A3A3A3', $s;
  • Comment on Re: chopping a string into slices - is there a more elegant way to do it?
  • Download Code