auto/share/dist/Text-ANSITable/examples/demo1.pl untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 25 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!perl
2  
3 use 5.010;
4 use Text::ANSITable;
5  
6 # don't forget this if you want to output utf8 characters
7 binmode(STDOUT, ":utf8");
8  
9 my $t = Text::ANSITable->new;
10  
11 # set styles
12 #$t->border_style('UTF8::SingleLineBold'); # if not, a nice default is picked
13 $t->color_theme('Standard::NoGradation'); # if not, a nice default is picked
14  
15 # fill data
16 $t->columns(["name" , "color" , "price"]);
17 $t->add_row(["chiki" , "yellow", 2000]);
18 $t->add_row(["lays" , "green" , 7000]);
19 $t->add_row(["tao kae noi", "blue" , 18500]);
20  
21 # draw it!
22 print "Set BORDER_STYLE to customize border style\n";
23 print $t->draw;