Text::FormatTable(3pm) | User Contributed Perl Documentation | Text::FormatTable(3pm) |
Text::FormatTable - Format text tables
my $table = Text::FormatTable->new('r|l'); $table->head('a', 'b'); $table->rule('='); $table->row('c', 'd'); print $table->render(20);
Text::FormatTable renders simple tables as text. You pass to the constructor (new) a table format specification similar to LaTeX (e.g. "r|l|5l|R|20L") and you call methods to fill the table data and insert rules. After the data is filled, you call the render method and the table gets formatted as text.
Methods:
Text::ASCIITable
Copyright (c) 2001-2004 Swiss Federal Institute of Technology,
Zurich.
(c) 2009 Trey Harris All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Git - http://github.com/treyharris/Text-FormatTable/tree/master
David Schweikert <dws@ee.ethz.ch>
Maintained by Trey Harris <treyharris@gmail.com>
Fixed column width and bottom alignment written by Veselin Slavov <vslavov@creditreform.bg>
2022-11-20 | perl v5.36.0 |