Text::SimpleTable.3pm

Langue: en

Version: 2007-05-06 (mandriva - 01/05/08)

Section: 3 (Bibliothèques de fonctions)

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   |            |
     '-------+------------'
 
 

DESCRIPTION

Simple eyecandy ASCII tables, as seen in Catalyst.

METHODS

$table->row( @texts )
$table->draw

SEE ALSO

Catalyst

AUTHOR

Sebastian Riedel, "sri@oook.de" This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.