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

When you have written your script, I would suggest rewriting it using the CPAN module Text::Autoformat.

The experience should show you why it is good to use CPAN when you can. :-)

  • Comment on Re (tilly) 1: How do I split a string at a char position that's also the end of a word?