|
NAMEText::Table::Paragraph - Format table data as paragraphs of rowsVERSIONThis document describes version 0.002 of Text::Table::Paragraph (from Perl distribution Text-Table-Paragraph), released on 2016-01-01.SYNOPSISuse Text::Table::Paragraph; my $rows = [ # header row ['name', 'summary', 'description'], # rows ['foo', 'bandung', 'a long description .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... ....'], ['bar', 'jakarta', 'another long description .... .... .... .... .... .... .... .... .... .... .... .... .... .... ....'], ['baz', 'palangkaraya', 'yet another long description .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... ....'], ]; print Text::Table::Paragraph::table(rows => $rows, header_row => 1); DESCRIPTIONThis module provides a single function, "table", which formats a two-dimensional array of data as paragraphs. Each paragraph shows a row of data and columns are shown as "name: value" lines. Long values by default are wrapped and shown indented in the subsequent lines.The example shown in the SYNOPSIS generates the following table: name: foo summary: bandung description: a long description .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... name: bar summary: jakarta description: another long description .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... name: baz summary: palangkaraya description: yet another long description .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... FUNCTIONStable(%params) => strOPTIONSThe "table" function understands these arguments, which are passed as a hash.
ENVIRONMENTTEXT_TABLE_PARAGRAPH_WRAP => boolSet default for "wrap" option.TEXT_TABLE_PARAGRAPH_WRAP_WIDTH => intSet default for "wrap_width" option.HOMEPAGEPlease visit the project's homepage at <https://metacpan.org/release/Text-Table-Paragraph>.SOURCESource repository is at <https://github.com/perlancar/perl-Text-Table-Paragraph>.BUGSPlease report any bugs or feature requests on the bugtracker website <https://rt.cpan.org/Public/Dist/Display.html?Name=Text-Table-Paragraph>When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. SEE ALSOThis module is currently basically Text::Table::Tiny 0.03 modified to output paragraphs instead of its original 2D text table format."Text::Table::*", Text::Table::Any See also Bencher::Scenario::TextTableModules. AUTHORperlancar <perlancar@cpan.org>COPYRIGHT AND LICENSEThis software is copyright (c) 2017 by perlancar@cpan.org.This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Visit the GSP FreeBSD Man Page Interface. |