Text::VerticalTable - Create a nice formatted `key, value` table vertically
use Text::VerticalTable; my $t = Text::VerticalTable->new; $t->setHead('explain result'); $t->addRow(id => 1); $t->addRow(select_type => 'SIMPLE'); $t->addRow(table => 'foo'); print $t; # Result: ********** 1. explain result ********** id: 1 select_type: SIMPLE table: foo
Text::VerticalTable is the text formatter for `key, value` list.
Initialize a new table.
Set the title line.
Adds one row to the table.
Note that you need to call setHead before calling addRow.
setHead
addRow
build table
Text::VerticalTable is hosted on github: http://github.com/bayashi/Text-VerticalTable
I appreciate any feedback :D
Dai Okabayashi <bayashi@cpan.org>
Text::ASCIITable
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install Text::VerticalTable, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::VerticalTable
CPAN shell
perl -MCPAN -e shell install Text::VerticalTable
For more information on module installation, please visit the detailed CPAN module installation guide.