1.17 段落を整形する
文字列が長過ぎてスクリーンに収まりきらない。文字列を複数行に分割する方法
# Text::Wrapを使う use Text::Wrap; @output = wrap($leadtab, $nexttab, @para); # Text::Autoformatを使う(こちらの方がより優れている) use Text::Autoformat; $formatted = autoformat $rawtext;
文字列が長過ぎてスクリーンに収まりきらない。文字列を複数行に分割する方法
# Text::Wrapを使う use Text::Wrap; @output = wrap($leadtab, $nexttab, @para); # Text::Autoformatを使う(こちらの方がより優れている) use Text::Autoformat; $formatted = autoformat $rawtext;