Book HomeJava and XSLTSearch this book

8.209. Text::Wrap

Wraps text into a paragraph. Defines the $columns variable, which specifies the output line length. Default is 76. 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.



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.