Games::Lacuna::Task::Table - Simple table for reports
my $table = Games::Lacuna::Task::Table->new( headline => 'Some table', columns => ['Column 1','Column 2'], ); foreach (@data) { $table->add_row({ column_1 => $_->[0], column_2 => $_->[1], }); } say $table->render_text;
Headline. [Optional]
Array of column names. [Required]
Array of HashRefs. Usually not accessed directly.
Render table as HTML.
Render table as plain text.
Checks if headline is set
Add a new row.
To install Games::Lacuna::Task, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Lacuna::Task
CPAN shell
perl -MCPAN -e shell install Games::Lacuna::Task
For more information on module installation, please visit the detailed CPAN module installation guide.