http://qs321.pair.com?node_id=335858


in reply to Counting characters in a string

The problem that you are addressing (along with a load more) is excellently solved by the Text::Autoformat module.

For simpler needs, see Text::Wrap.

MB