The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Perinci::To::Text::AddDocLinesRole - Role which provides add_doc_lines() with text wrapping

VERSION

version 0.18

DESCRIPTION

This role provides add_doc_lines() which wraps the lines. This method is separated from Perinci::To::Text so other modules can use it (e.g. Perinci::CmdLine, which also generates help/usage message).

To change width of columns, set $Text::Wrap::columns.

ATTRIBUTES

wrap => BOOL (default 1)

Whether to do text wrapping.

METHODS

$o->add_doc_lines([$opts, ]@lines)

FUNCTIONS

AUTHOR

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Steven Haryanto.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.