Text::ASCIITable::Wrap - Wrap text


Text-ASCIITable documentation  | view source Contained in the Text-ASCIITable distribution.

Index


NAME

Top

Text::ASCIITable::Wrap - Wrap text

SHORT DESCRIPTION

Top

Make sure a text never gets wider than the specified width using wordwrap.

SYNOPSIS

Top

  use Text::ASCIITable::Wrap qw{ wrap };
  print wrap('This is a long line which will be cut down to several lines',10);

FUNCTIONS

Top

wrap($text,$width[,$nostrict]) (exportable)

Wraps text at the specified width. Unless the $nostrict parameter is set, it will cut down the word if a word is wider than $width. Also supports text with linebreaks.

REQUIRES

Top

Exporter, Carp

AUTHOR

Top

Håkon Nessjøen, lunatic@cpan.org

VERSION

Top

Current version is 0.2.

COPYRIGHT

Top

SEE ALSO

Top

Text::ASCIITable, Text::Wrap


Text-ASCIITable documentation  | view source Contained in the Text-ASCIITable distribution.