TextTable - Create Text::Table
use App::PerlShell::AddOn::TextTable;
This module implements table creation with Text::Table.
Provides help.
[$table =] texttable [OPTIONS];
Create Text::Table object. See Text::Table for OPTIONS.
$table->cols([array],[...]);
Load table by columns. Array references provided will make up the columns of the Text::Table table.
$table->rows([array],[...]);
Load table by rows. Array references provided will make up the rows of the Text::Table table.
use App::PerlShell::AddOn::TextTable; @a1 = qw (1 1); @a2 = qw (2 2); $table = texttable("One", "Two"); $table->cols(\@a1,\@a2); print $table;
use App::PerlShell::AddOn::TextTable; $table = texttable("Sent\nTTL", "IP Addr", "Time", "Recv\nTTL"); $table->cols( [ map { [$_->layers]->[1]->ttl } $t->sent ], [ map { [$_->layers]->[1]->src } $t->recv ], [ $t->time ], [ map { [$_->layers]->[1]->ttl } $t->recv ] ); print $table;
Text::Table Array::Transpose
This software is released under the same terms as Perl itself. If you don't know what that means visit http://perl.com/.
Copyright (c) 2013, 2016 Michael Vincent
http://www.VinsWorld.com
All rights reserved
To install App::PerlShell, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::PerlShell
CPAN shell
perl -MCPAN -e shell install App::PerlShell
For more information on module installation, please visit the detailed CPAN module installation guide.