Text::Wrap

Wraps text into a paragraph. Defines the $columns variable, which specifies the output line length. Default is . Exported on request. Provides the following function.

wrap

wrap (init_str, other_str, text) 

Breaks lines of array text at the word boundary closest to the size of a line. Prepends init_str to the first output line and other_str to subsequent lines, for indentation. Exported by default.