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.
In reply to Re: Counting characters in a string
by matthewb
in thread Counting characters in a string
by TASdvlper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |