in reply to Smart Substrings

Well, it doesn't necessarily fit this circumstance, but if you are doing things that are greater than .. Oh.. 25 or so, you really should use Text::Wrap.