in reply to How do I split a string at a char position that's also the end of a word?

I had to do something similar, and used rindex instead, check out Truncate string. Or as suggested, Text::Autoformat and Text::Wrap.
  • Comment on Re: How do I split a string at a char position that's also the end of a word?