Text::Wrap

Text::Wrap

NAME

Text::Wrap - line wrapping to form simple paragraphs

SYNOPSIS

Example 1

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);

Example 2

登录查看完整内容