Name : perl-Text-FormatTable
| |
Version : 1.03
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.58.1
| Date : 2023-01-27 18:04:25
|
Group : Development/Libraries/Perl
| Source RPM : perl-Text-FormatTable-1.03-lp154.58.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : Format text tables
|
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|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:
* *new*(_$format_)
Create a Text::FormatTable object, the format of each column is specified as a character of the $format string. The following formats are defined:
* l
Left-justified top aligned word-wrapped text.
* L
Left-justified bottom aligned word-wrapped text.
* r
Right-justified top aligned word-wrapped text.
* R
Right-justified bottom aligned word-wrapped text.
* 10R, 20r, 15L, 12l,
Number is fixed width of the column. Justified and aligned word-wrapped text (see above).
* \' \'
A space.
* |
Column separator.
* *head*(_$col1_, _$col2_, ...)
Add a header row using $col1, $col2, etc. as cell contents. Note that, at the moment, header rows are treated like normal rows.
* *row*(_$col1_, _$col2_, ...)
Add a row with $col1, $col2, etc. as cell contents.
* *rule*([_$char_])
Add an horizontal rule. If $char is specified it will be used as character to draw the rule, otherwise \'-\' will be used.
* *render*([_$screen_width_])
Return the rendered table formatted with $screen_width or 79 if it is not specified.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.4/noarch |