---
name: "Text::ASCIITable::Wrap"
section: "3pm"
platform: "linux"
package: "libtext-asciitable-perl"
version: "0.22-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Text::ASCIITable::Wrap"
---

# Text::ASCIITable::Wrap(3pm)

Wrap text

## NAME

Text::ASCIITable::Wrap - Wrap text

## SHORT DESCRIPTION

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

## SYNOPSIS

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

## FUNCTIONS

### 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

Exporter, Carp

## AUTHOR

HXkon NessjXen, lunatic@cpan.org

## VERSION

Current version is 0.2.

## COPYRIGHT

Copyright 2002-2003 by HXkon NessjXen. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

## SEE ALSO

Text::ASCIITable, Text::Wrap
