Text-Wrap

Text::Wrap(3p) Perl Programmers Reference Guide Text::Wrap(3p)

Text-Wrap

Text::Wrap(3p) Perl Programmers Reference Guide Text::Wrap(3p) # Text::Wrap(3p) Perl Programmers Reference Guide Text::Wrap(3p) NNAAMMEE # Text::Wrap - line wrapping to form simple paragraphs SSYYNNOOPPSSIISS # EExxaammppllee 11 use Text::Wrap; $initial_tab = "\t"; # Tab before first line $subsequent_tab = ""; # All other lines flush left print wrap($initial_tab, $subsequent_tab, @text); print fill($initial_tab, $subsequent_tab, @text); $lines = wrap($initial_tab, $subsequent_tab, @text); @paragraphs = fill($initial_tab, $subsequent_tab, @text); EExxaammppllee 22 use Text::Wrap qw(wrap $columns $huge); $columns = 132; # Wrap at 132 characters $huge = 'die'; $huge = 'wrap'; $huge = 'overflow'; EExxaammppllee 33 use Text::Wrap; $Text::Wrap::columns = 72; print wrap('', '', @text); DDEESSCCRRIIPPTTIIOONN # "Text::Wrap::wrap()" is a very simple paragraph formatter. ...