Text::SimpleTable man page on Fedora
[printable version]
Text::SimpleTable(3) User Contributed Perl Documentation Text::SimpleTable(3)
NAME
Text::SimpleTable - Simple Eyecandy ASCII Tables
SYNOPSIS
use Text::SimpleTable;
my $t1 = Text::SimpleTable->new(5, 10);
$t1->row('foobarbaz', 'yadayadayada');
print $t1->draw;
.-------+------------.
| foob- | yadayaday- |
| arbaz | ada |
'-------+------------'
my $t2 = Text::SimpleTable->new([5, 'Foo'], [10, 'Bar']);
$t2->row('foobarbaz', 'yadayadayada');
$t2->row('barbarbarbarbar', 'yada');
print $t2->draw;
.-------+------------.
| Foo | Bar |
+-------+------------+
| foob- | yadayaday- |
| arbaz | ada |
| barb- | yada |
| arba- | |
| rbar- | |
| bar | |
'-------+------------'
my $t3 = Text::SimpleTable->new([5, 'Foo'], [10, 'Bar']);
$t3->row('foobarbaz', 'yadayadayada');
$t3->hr;
$t3->row('barbarbarbarbar', 'yada');
print $t3->draw;
.-------+------------.
| Foo | Bar |
+-------+------------+
| foob- | yadayaday- |
| arbaz | ada |
+-------+------------+
| barb- | yada |
| arba- | |
| rbar- | |
| bar | |
'-------+------------'
DESCRIPTION
Simple eyecandy ASCII tables.
METHODS
Text::SimpleTable implements the following methods.
"new"
my $t = Text::SimpleTable->new(5, 10);
my $t = Text::SimpleTable->new([5, 'Col1', 10, 'Col2']);
"draw"
my $ascii = $t->draw;
"hr"
$t = $t->hr;
"row"
$t = $t->row('col1 data', 'col2 data');
AUTHOR
Sebastian Riedel, "sri@cpan.org".
MAINTAINER
Marcus Ramberg "mramberg@cpan.org".
CREDITS
In alphabetical order:
Brian Cassidy
COPYRIGHT AND LICENSE
Copyright (C) 2005-2010, Sebastian Riedel.
This program is free software, you can redistribute it and/or modify it
under the terms of the Artistic License version 2.0.
perl v5.14.0 2010-03-11 Text::SimpleTable(3)
[top]
List of man pages available for Fedora
Copyright (c) for man pages and the logo by the respective OS vendor.
For those who want to learn more, the polarhome community provides shell access and support.
[legal]
[privacy]
[GNU]
[policy]
[cookies]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
|
Vote for polarhome
|