in reply to How do I truncate a string while preserving words?
What about the standard module Text:: Wrap?
Here's a promising-sounding snippet from its docs:
Text::Wrap::wrap() is a very simple paragraph formatter. It formats a single paragraph at a time by breaking lines at word boundaries.
Or if that's not sufficient, Text::Autoformat is capable of more complex things.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How do I truncate a string while preserving words?
by Cap'n Steve (Friar) on May 12, 2007 at 08:02 UTC | |
by tomfahle (Priest) on May 12, 2007 at 14:28 UTC |