NAME

Text::VerticalTable - Create a nice formatted `key, value` table vertically

SYNOPSIS

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

DESCRIPTION

Text::VerticalTable is the text formatter for `key, value` list.

METHODS

new

Initialize a new table.

setHead($title)

Set the title line.

addRow(key => 'value')

Adds one row to the table.

Note that you need to call setHead before calling addRow.

draw

build table

REPOSITORY

Text::VerticalTable is hosted on github: http://github.com/bayashi/Text-VerticalTable

I appreciate any feedback :D

AUTHOR

Dai Okabayashi <bayashi@cpan.org>

SEE ALSO

Text::ASCIITable

LICENSE

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.