Closed p-alik closed 6 years ago
@p-alik :
shlomif@telaviv1:~$ cat f.pl
use v5.10;
use strict;
use warnings;
use Text::Table;
my $tb = Text::Table->new(qw/aaa bbb/);
print $tb->title;
print $tb->rule('-', '+');
$tb->load(
[qw/for bar/],
);
print $tb->body(0);
shlomif@telaviv1:~$ perl f.pl
aaa bbb
-------
for bar
shlomif@telaviv1:~$
hope it helps
thank you, @shlomif. It helps indeed!
@p-alik 's solution doesn't completely generate the desired output, as it lacks the central '+' character and the | characters between the items of data.
Not sure I understood the documentation correctly, but I couldn't build a table with horizontal and vertical separation.
the code produces
expected output
Any help would be much appreciated