Text::TabularDisplay simplifies displaying textual data in a table. The output is identical to the columnar display of query results in the mysql text monitor. For example, this data:
1, "Tom Jones", "(666) 555-1212" 2, "Barnaby Jones", "(666) 555-1213" 3, "Bridget Jones", "(666) 555-1214"
Used like so:
my $t = Text::TabularDisplay->new(qw(id name phone)); $t->add(1, "Tom Jones", "(666) 555-1212"); $t->add(2, "Barnaby Jones", "(666) 555-1213"); $t->add(3, "Bridget Jones", "(666) 555-1214"); print $t->render;
Produces:
+----+---------------+----------------+ | id | name | phone | +----+---------------+----------------+ | 1 | Tom Jones | (666) 555-1212 | | 2 | Barnaby Jones | (666) 555-1213 | | 3 | Bridget Jones | (666) 555-1214 | +----+---------------+----------------+
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
1.38-bp156.3.1 info | GA Release | 2023-07-22 | 15 SP6 |
|
|
1.38-bp155.2.9 info | GA Release | 2023-05-17 | 15 SP5 |
|
|
1.38-bp154.1.19 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
1.38-bp153.1.14 info | GA Release | 2021-03-06 | 15 SP3 |
|
|
1.38-bp152.3.13 info | GA Release | 2020-04-16 | 15 SP2 |
|
|
1.38-bp151.3.1 info | GA Release | 2019-07-17 | 15 SP1 |
|
|
1.38-bp151.2.12 info | GA Release | 2019-05-18 | 15 SP1 |
|
|
1.38-bp150.2.4 info | GA Release | 2018-07-30 | 15 |
|
|