Text::FormatTable(3)

NAME
Text::FormatTable - Format text tables

SYNOPSIS
 my $table = Text::FormatTable->new('r|l');
 $table->head('a', 'b');
 $table->rule('=');
 $table->row('c', 'd');

DESCRIPTION
Text::FormatTable renders simple tables as text. You pass to the constructor (new) a table format specification similar to LaTeX (e.g. `r|l|l') 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: Create a Text::FormatTable object, the format of each column is specified as a character of the $format string. The following formats are defined:
    Left-justified word-wrapped text. Right-justified word-wrapped text. A space. Column separator.
Add a header row using $col1, $col2, etc. as cell contents. Note that at the header rows are not treated specially. Add a row with $col1, $col2, etc. as cell contents. Add an horizontal rule. If $char is specified it will be used as character to draw the rule, otherwise '-' will be used. Return the rendered table formatted with $screen_width or 79 if it is not specified.

COPYRIGHT
Copyright (c) 2001, Swiss Federal Institute of Technology, Zurich. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR
David Schweikert <dws@ee.ethz.ch>